From 8771aa573c6ae977b3e4b44f305749e9d7de9906 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Mon, 12 Dec 2016 15:20:36 -0500 Subject: [PATCH] webstaff: sound for batch hold edit Signed-off-by: Jason Etheridge Signed-off-by: Kathy Lussier --- .../web/js/ui/default/staff/circ/services/holds.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 2b2ed7740d..27aae5e1d1 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 @@ -169,7 +169,19 @@ function($uibModal , $q , egCore , egConfirmDialog , egAlertDialog) { return egCore.net.request( 'open-ils.circ', 'open-ils.circ.hold.update.batch', - egCore.auth.token(), null, new_values); + egCore.auth.token(), null, new_values).then( + function(resp) { + if (evt = egCore.evt.parse(resp)) { + egCore.audio.play( + 'warning.hold.batch_update'); + console.error('unable to batch update holds: ' + + evt.toString()); + } else { + egCore.audio.play( + 'success.hold.batch_update'); + } + } + ); } service.set_copy_quality = function(hold_ids) { -- 2.43.2