From f736176ddae994baefa62c8427f3f441f585e39e Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 27 Feb 2018 17:23:22 -0500 Subject: [PATCH] LP#1676608: don't sound the klaxon for unusual copy statuses during checkin During a successful checkin, play the success sound if an unexpected copy status is noted in the success message -- it may have been set via a copy alert. Signed-off-by: Galen Charlton Signed-off-by: Mike Rylander --- Open-ILS/web/js/ui/default/staff/circ/services/circ.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js index f349f6c2ac..f19188488e 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js @@ -1493,8 +1493,8 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, egAddCopyAl return $q.when(final_resp); default: - egCore.audio.play('error.checkin.unknown'); - console.error('Unhandled checkin copy status: ' + egCore.audio.play('success.checkin'); + console.debug('Unusual checkin copy status (may have been set via copy alert): ' + copy.status().id() + ' : ' + copy.status().name()); return $q.when(final_resp); } -- 2.11.0