From: Bill Erickson Date: Fri, 30 Mar 2012 16:29:55 +0000 (-0400) Subject: _finishStartup works; todo: add the sorting X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=324cab2ec389127e99b4f352196ac2295fc0a6f9;p=evergreen%2Fequinox.git _finishStartup works; todo: add the sorting Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js b/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js index 5901447544..1d7ca1f836 100644 --- a/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js @@ -208,9 +208,6 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { /* Save original query for further filtering later */ this._baseQuery = dojo.clone(this.query); - this._startup_inherited = this.inherited; - this._startup_arguments = arguments; - if (!this.columnPicker) { this.columnPicker = new openils.widget.GridColumnPicker( @@ -225,20 +222,16 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { "_finishStartup": function() { - if (!this.store) { - this.setStore( /* this exact method chosen intentionally */ - new openils.FlattenerStore({ - "fmClass": this.fmClass, - "fmIdentifier": this.fmIdentifier, - "mapClause": (this.mapClause || - this._cleanMapForStore(this._generateMap())), - "baseSort": this.baseSort, - "defaultSort": this.defaultSort - }) - ); - } - - this._startup_inherited(this._startup_arguments); + this.setStore( /* this exact method chosen intentionally */ + new openils.FlattenerStore({ + "fmClass": this.fmClass, + "fmIdentifier": this.fmIdentifier, + "mapClause": (this.mapClause || + this._cleanMapForStore(this._generateMap())), + "baseSort": this.baseSort, + "defaultSort": this.defaultSort + }), this.query + ); this._startupGridHelperColumns();