From: Jason Etheridge Date: Mon, 12 Dec 2016 20:20:36 +0000 (-0500) Subject: webstaff: sound for batch hold edit X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1554dc429dc6a220f96cdc07b8f74e406e25f5ef;p=working%2FEvergreen.git webstaff: sound for batch hold edit Signed-off-by: Jason Etheridge --- 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) {