},
"startup": 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
- })
- );
- }
/* Save original query for further filtering later */
this._baseQuery = dojo.clone(this.query);
this.columnPicker =
new openils.widget.GridColumnPicker(
null, this.columnPersistKey, this);
+ this.columnPicker.onLoad = dojo.hitch(
+ this, function(opts) { this._finishStartup(opts.sortFields) });
this.columnPicker.load();
}
this.inherited(arguments);
+ },
+
+ "_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.inherited(arguments);
this._startupGridHelperColumns();
this._setupLinks();
},
+
"_setupLinks": function() {
this.linkHolder = new dijit.layout.ContentPane();
dojo.place(this.linkHolder.domNode, this.domNode, "before");