From 324cab2ec389127e99b4f352196ac2295fc0a6f9 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 30 Mar 2012 12:29:55 -0400 Subject: [PATCH] _finishStartup works; todo: add the sorting Signed-off-by: Bill Erickson --- .../web/js/dojo/openils/widget/FlattenerGrid.js | 27 ++++++++-------------- 1 file changed, 10 insertions(+), 17 deletions(-) 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(); -- 2.11.0