From: Lebbeous Fogle-Weekley Date: Mon, 2 Apr 2012 16:34:47 +0000 (-0400) Subject: working org selector, working call number prefix/suffix. crushing it! X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=14c8bf4f2f35ebde5fd6dec2f96c26569729128b;p=evergreen%2Fequinox.git working org selector, working call number prefix/suffix. crushing it! Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/templates/circ/hold_pull_list.tt2 b/Open-ILS/src/templates/circ/hold_pull_list.tt2 index aef4e4f545..09fd3d9974 100644 --- a/Open-ILS/src/templates/circ/hold_pull_list.tt2 +++ b/Open-ILS/src/templates/circ/hold_pull_list.tt2 @@ -2,7 +2,74 @@ [% ctx.page_title = 'Hold Pull List' %]
Print Pull List
- +
+ + +
+ mapExtras="map_extras" + deferInitialFetch="true" + query="{}"> - + diff --git a/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js b/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js index 230974d05e..e86460d349 100644 --- a/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js +++ b/Open-ILS/web/js/dojo/openils/widget/FlattenerGrid.js @@ -17,6 +17,7 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { "columnReordering": true, "columnPersistKey": null, "showLoadFilter": false, /* use FlattenerFilterDialog */ + "deferInitialFetch": false, /* These potential constructor arguments maybe useful to * FlattenerGrid in their own right, and are passed to @@ -294,7 +295,7 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { "_finishStartup": function(sortFields) { - this.setStore( + this._setStore( /* Seriously, let's leave this as _setStore. */ new openils.FlattenerStore({ "fmClass": this.fmClass, "fmIdentifier": this.fmIdentifier, @@ -305,6 +306,10 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { }), this.query ); + if (!this.deferInitialFetch) { + this._refresh(true); + } + // pick up any column label changes this.columnPicker.reloadStructure(); @@ -359,6 +364,23 @@ if (!dojo._hasResource["openils.widget.FlattenerGrid"]) { } }, + "refresh": function() { + /* We may never need additional logic here, but I don't + * want callers to make a habit of calling _ methods directly. + */ + console.log("here (no surprise)"); + this._refresh(/* isRender */ true); + }, + + "_render": function() { + if(this.domNode.parentNode){ + this.scroller.init(this.attr('rowCount'), this.keepRows, this.rowsPerPage); + this.prerender(); + if (!this.deferInitialFetch) + this._fetch(0, true); + } + }, + /* ******** below are methods mostly copied but * slightly changed from AutoGrid ******** */
Barcode Shelving Location