[open-ils-commits] r15576 - in trunk/Open-ILS/web: js/ui/default/acq/po templates/default/acq/po (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Feb 18 10:10:24 EST 2010
Author: phasefx
Date: 2010-02-18 10:10:22 -0500 (Thu, 18 Feb 2010)
New Revision: 15576
Modified:
trunk/Open-ILS/web/js/ui/default/acq/po/events.js
trunk/Open-ILS/web/templates/default/acq/po/events.tt2
Log:
Search button instead of fire-on-change
Modified: trunk/Open-ILS/web/js/ui/default/acq/po/events.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/po/events.js 2010-02-18 14:54:37 UTC (rev 15575)
+++ trunk/Open-ILS/web/js/ui/default/acq/po/events.js 2010-02-18 15:10:22 UTC (rev 15576)
@@ -15,7 +15,15 @@
buildStateSelector();
buildOrgSelector();
buildDatePickers();
+ eventGrid.resetStore();
buildEventGrid();
+
+ eventGrid.cancelSelected = function() { doSelected('open-ils.acq.purchase_order.event.cancel.batch') };
+ eventGrid.resetSelected = function() { doSelected('open-ils.acq.purchase_order.event.reset.batch') };
+ eventGrid.doSearch = function() {
+ buildEventGrid();
+ }
+
} catch(E) {
//dump('Error in acq/events.js, eventInit(): ' + E);
throw(E);
@@ -42,8 +50,6 @@
this.setValue( swap );
}
eventStartDateRange = this.getValue();
- eventGrid.resetStore();
- buildEventGrid();
}
);
dojo.connect(
@@ -57,8 +63,6 @@
this.setValue( swap );
}
eventEndDateRange = this.getValue();
- eventGrid.resetStore();
- buildEventGrid();
}
);
@@ -85,8 +89,6 @@
function() {
try {
eventState = this.getValue();
- eventGrid.resetStore();
- buildEventGrid();
} catch(E) {
//dump('Error in acq/events.js, eventInit, connect, onChange: ' + E);
throw(E);
@@ -110,8 +112,6 @@
function() {
try {
eventContextOrg = this.getValue();
- eventGrid.resetStore();
- buildEventGrid();
} catch(E) {
//dump('Error in acq/events.js, eventInit, connect, onChange: ' + E);
throw(E);
@@ -125,9 +125,6 @@
};
new openils.User().buildPermOrgSelector('STAFF_LOGIN', eventContextOrgSelect, null, connect);
- eventGrid.cancelSelected = function() { doSelected('open-ils.acq.purchase_order.event.cancel.batch') };
- eventGrid.resetSelected = function() { doSelected('open-ils.acq.purchase_order.event.reset.batch') };
-
} catch(E) {
//dump('Error in acq/events.js, buildOrgSelector(): ' + E);
throw(E);
@@ -167,8 +164,7 @@
oncomplete: function(r) {
try {
var result = openils.Util.readResponse(r);
- eventGrid.resetStore();
- buildEventGrid();
+ buildEventGrid();
} catch(E) {
//dump('Error in acq/events.js, doSelected(), oncomplete(): ' + E);
throw(E);
@@ -183,6 +179,7 @@
}
function buildEventGrid() {
+ eventGrid.resetStore();
if(eventContextOrg == null) {
eventContextOrg = openils.User.user.ws_ou();
}
Modified: trunk/Open-ILS/web/templates/default/acq/po/events.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/po/events.tt2 2010-02-18 14:54:37 UTC (rev 15575)
+++ trunk/Open-ILS/web/templates/default/acq/po/events.tt2 2010-02-18 15:10:22 UTC (rev 15576)
@@ -42,6 +42,7 @@
dojoType="dijit.form.DateTextBox"
jsId="eventEndDatePicker" />
</span>
+ <button dojoType="dijit.form.Button" onClick="eventGrid.doSearch()">Search</button>
</div>
<table jsId="eventGrid"
dojoType="openils.widget.AutoGrid"
More information about the open-ils-commits
mailing list