enable popups. If KCLS doesn't want this, they can disable the org setting. Specify...
authorJason Etheridge <jason@esilibrary.com>
Thu, 17 Feb 2011 04:35:35 +0000 (23:35 -0500)
committerJason Etheridge <jason@esilibrary.com>
Mon, 6 Jun 2011 17:53:09 +0000 (13:53 -0400)
Open-ILS/web/css/skin/kcls/selfcheck.css
Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js

index 2a5dc79..33a018c 100644 (file)
@@ -176,7 +176,11 @@ h2 {
        vertical-align:inherit !important;\r
        font-size: 18px;\r
        font-weight: bold;\r
-       color: red;\r
+       color: blue;\r
+}\r
+\r
+.checkout_failure {\r
+    color: red !important;\r
 }\r
 \r
 #oils-base-body-block {\r
@@ -206,3 +210,4 @@ body .dijitAlignClient {
        width:0px !important;\r
 }\r
 \r
+\r
index 557a3cd..fe492e5 100644 (file)
@@ -377,6 +377,11 @@ SelfCheckManager.prototype.handleAlert = function(message, shouldPopup, sound) {
                dojo.byId('oils-selfck-status-div2').innerHTML = message;\r
                dojo.byId('oils-selfck-status-div3').innerHTML = message;\r
        }\r
+\r
+    if(shouldPopup)\r
+        openils.Util.addCSSClass( dojo.byId('oils-selfck-status-div'), 'checkout_failure' );\r
+    else\r
+        openils.Util.removeCSSClass( dojo.byId('oils-selfck-status-div'), 'checkout_failure' );\r
        \r
     if(shouldPopup && this.orgSettings[SET_ALERT_POPUP]) \r
         alert(message);\r
@@ -988,7 +993,7 @@ SelfCheckManager.prototype.handleXactResult = function(action, item, result) {
                 return { renew : true };\r
             }\r
 \r
-            popup = false;\r
+            popup = true;\r
             sound = 'checkout-failure';\r
             displayText = dojo.string.substitute(localeStrings.ALREADY_OUT, [item]);\r
 \r
@@ -1007,7 +1012,7 @@ SelfCheckManager.prototype.handleXactResult = function(action, item, result) {
 \r
             \r
             // item is checked out to some other user\r
-            popup = false;\r
+            popup = true;\r
             sound = 'checkout-failure';\r
             displayText = dojo.string.substitute(localeStrings.OPEN_CIRCULATION_EXISTS, [item]);\r
         }\r
@@ -1062,7 +1067,7 @@ SelfCheckManager.prototype.handleXactResult = function(action, item, result) {
         }\r
     \r
         this.updateScanBox();\r
-        popup = false;\r
+        popup = true;\r
         sound = 'checkout-failure';\r
 \r
         if(action == 'renew')\r