From: erickson Date: Thu, 26 Mar 2009 17:25:22 +0000 (+0000) Subject: plugged in batch event (notification, etc.) cancellation X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=615dfad9bd4cace6d74caad3d061f079b50c01e6;p=evergreen%2Fbjwebb.git plugged in batch event (notification, etc.) cancellation git-svn-id: svn://svn.open-ils.org/ILS/trunk@12689 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/actor/user/trigger_events.js b/Open-ILS/web/js/ui/default/actor/user/trigger_events.js index 19376e48a..6c46f2aa2 100644 --- a/Open-ILS/web/js/ui/default/actor/user/trigger_events.js +++ b/Open-ILS/web/js/ui/default/actor/user/trigger_events.js @@ -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);