From 52faee9948438c28b6cc2183432ec05e9ade4d83 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 17 Feb 2011 04:18:27 +0000 Subject: [PATCH] CSS hook for check-in failures with selfcheck git-svn-id: svn://svn.open-ils.org/ILS/trunk@19461 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/circ/selfcheck/selfcheck.js | 5 +++++ 1 file changed, 5 insertions(+) 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 aeeacefce3..bc4bb97d3f 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); -- 2.11.0