plugged in batch event (notification, etc.) cancellation
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 26 Mar 2009 17:25:22 +0000 (17:25 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 26 Mar 2009 17:25:22 +0000 (17:25 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@12689 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/actor/user/trigger_events.js

index 19376e4..6c46f2a 100644 (file)
@@ -59,6 +59,18 @@ function getField(rowIdx, item) {
 }
 
 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);