_finishStartup works; todo: add the sorting
authorBill Erickson <berick@esilibrary.com>
Fri, 30 Mar 2012 16:29:55 +0000 (12:29 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 30 Mar 2012 16:29:55 +0000 (12:29 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js

index 5901447..1d7ca1f 100644 (file)
@@ -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();