From 00e9b116ca6963b516769b4093a883e546a8ca0e Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 6 Feb 2018 12:25:37 -0500 Subject: [PATCH] JBAS-1983 SCKO dedicated high-contrast mode Append ?high-contrast=1 to the URL to have always-on high contrast. Signed-off-by: Bill Erickson --- Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js b/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js index bd58b0393d..1b4c2b95cb 100644 --- a/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js +++ b/Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js @@ -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')) { -- 2.11.0