From ab2f8bd76707647800d9e860319eff10e676bf45 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Tue, 11 Nov 2014 13:26:21 -0500 Subject: [PATCH] LP#1402797 Supply top-level method for uncanceling holds Signed-off-by: Mike Rylander Signed-off-by: Kathy Lussier --- Open-ILS/web/js/ui/default/staff/circ/services/holds.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/holds.js b/Open-ILS/web/js/ui/default/staff/circ/services/holds.js index 77e4fb9db4..ee2fa79449 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/holds.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/holds.js @@ -449,6 +449,14 @@ function($window , $location , egCore , egHolds , egCirc) { return egHolds.cancel_holds(hold_ids).then(service.refresh); } + service.uncancel_hold = function(items) { + var hold_ids = items.filter(function(item) { + return item.hold.cancel_time(); + }).map(function(item) {return item.hold.id()}); + + return egHolds.uncancel_holds(hold_ids).then(service.refresh); + } + // jump to circ list for either 1) the targeted copy or // 2) the hold target copy for copy-level holds service.show_recent_circs = function(items) { -- 2.11.0