From: Bill Erickson Date: Thu, 29 Mar 2012 14:03:42 +0000 (-0400) Subject: AutoGrid reloads structure after columnHelpers loads X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=57329956399ef865256e98227432a4be1c1f4795;p=evergreen%2Fequinox.git AutoGrid reloads structure after columnHelpers loads Otherwise, the newly added columns are not recognized by the grid (unless you happen to have the column picker enabled). Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js index f101585c6a..b2aae238b6 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js @@ -45,8 +45,9 @@ if(!dojo._hasResource['openils.widget.AutoGrid']) { this.inherited(arguments); this.initAutoEnv(); - this.attr('structure', this._compileStructure()); + this.setStructure(this._compileStructure()); this._startupGridHelperColumns(); + this.setStructure(this.structure); // required after _startupGridHelper() this.setStore(this.buildAutoStore()); this.cachedQueryOpts = {};