From 3eac5127a3dd170fc31ff0fd134d8eb2c94bddcd Mon Sep 17 00:00:00 2001 From: Lebbeous Fogle-Weekley Date: Fri, 30 Mar 2012 15:33:23 -0400 Subject: [PATCH] Fix problem identified by Bill: checkboxes and line numbers had gone away Now they're back Signed-off-by: Lebbeous Fogle-Weekley --- Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js b/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js index df9c0d5956..647b2a8858 100644 --- a/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js @@ -59,6 +59,9 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { */ dojo.forEach( fields, function(field) { + if (field.field.match(/^\+/)) + return; /* special fields e.g. checkbox/line # */ + map[field.field] = { "display": true, "filter": (field.ffilter || false), @@ -239,6 +242,7 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { /* Save original query for further filtering later */ this._baseQuery = dojo.clone(this.query); + this._startupGridHelperColumns(); if (!this.columnPicker) { this.columnPicker = @@ -288,8 +292,6 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { }), this.query ); - this._startupGridHelperColumns(); - this._showing_create_pane = false; this.overrideEditWidgets = {}; -- 2.11.0