JBAS-1983 SCKO dedicated high-contrast mode
authorBill Erickson <berickxx@gmail.com>
Tue, 6 Feb 2018 17:25:37 +0000 (12:25 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Append ?high-contrast=1 to the URL to have always-on high contrast.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js

index bd58b03..1b4c2b9 100644 (file)
@@ -218,6 +218,13 @@ SelfCheckManager.prototype.init = function() {
         dojo.connect(dojo.byId(id), 'onclick', linkHandlers[id]);
     }
 
+    // High-contrast mode applied by URL.  Swap the style sheets
+    // then hide the button.
+    if (this.cgi.param('high-contrast')) {
+        dojo.byId('scko-contrast-toggle-button').click();
+        openils.Util.hide('scko-contrast-toggle-button');
+    }
+
 
     if(this.cgi.param('patron')) {