[open-ils-commits] r12689 - trunk/Open-ILS/web/js/ui/default/actor/user (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 26 13:25:25 EDT 2009
Author: erickson
Date: 2009-03-26 13:25:22 -0400 (Thu, 26 Mar 2009)
New Revision: 12689
Modified:
trunk/Open-ILS/web/js/ui/default/actor/user/trigger_events.js
Log:
plugged in batch event (notification, etc.) cancellation
Modified: trunk/Open-ILS/web/js/ui/default/actor/user/trigger_events.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/actor/user/trigger_events.js 2009-03-26 16:10:40 UTC (rev 12688)
+++ trunk/Open-ILS/web/js/ui/default/actor/user/trigger_events.js 2009-03-26 17:25:22 UTC (rev 12689)
@@ -59,6 +59,18 @@
}
function evtCancelSelected() {
+ var selected = evtGrid.selection.getSelected();
+ if(selected.length == 0) return;
+ var eventIds = selected.map(
+ function(item) { return evtGrid.store.getValue(item, 'id') } );
+ alert(eventIds);
+ fieldmapper.standardRequest(
+ ['open-ils.actor', 'open-ils.actor.user.event.cancel.batch'],
+ { async: true,
+ params: [openils.User.authtoken, eventIds],
+ oncomplete : init
+ }
+ );
}
openils.Util.addOnLoad(init);
More information about the open-ils-commits
mailing list