From: phasefx Date: Thu, 17 Feb 2011 04:18:27 +0000 (+0000) Subject: CSS hook for check-in failures with selfcheck X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=52faee9948438c28b6cc2183432ec05e9ade4d83;p=evergreen%2Fbjwebb.git CSS hook for check-in failures with selfcheck git-svn-id: svn://svn.open-ils.org/ILS/trunk@19461 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js index aeeacefce..bc4bb97d3 100644 --- a/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js @@ -373,6 +373,11 @@ SelfCheckManager.prototype.handleAlert = function(message, shouldPopup, sound) { dojo.byId('oils-selfck-status-div').innerHTML = message; + if(shouldPopup) + openils.Util.addCSSClass( dojo.byId('oils-selfck-status-div'), 'checkout_failure' ); + else + openils.Util.removeCSSClass( dojo.byId('oils-selfck-status-div'), 'checkout_failure' ); + if(shouldPopup && this.orgSettings[SET_ALERT_POPUP]) alert(message);