From 74c0a287ade90c56f90646f324a2c713f893e94d Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 31 Dec 2020 15:36:39 +0000 Subject: [PATCH] Bug 27321: make disabled labels #cccccc To test: 1. Apply patch and its dependency (bug 17364) 2. Go the system pref BorroweUnwantedFields 3. branchcode should cleary stand out as disabled (#cccccc) Signed-off-by: Andrew Fuerste-Henry --- koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js b/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js index c25854b619..3685ec06ee 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js @@ -233,6 +233,7 @@ $( document ).ready( function () { $.getJSON( themelang + "/modules/admin/preferences/" + datasource + ".json", function( data ){ var items = []; var checked = ""; + var style = ""; $.each( data, function( key, val ){ if( prefs.indexOf( val ) >= 0 ){ checked = ' checked="checked" '; @@ -240,12 +241,14 @@ $( document ).ready( function () { checked = ""; } if( exclusions.indexOf( val ) >= 0 ){ + style = ' style="color:#cccccc;" '; disabled = ' disabled="disabled" '; checked = ""; } else { + style = ' style="color:#000;" '; disabled = ""; } - items.push(''); + items.push(' ' + key + ''); }); $("
", { "class": "columns-2", -- 2.11.0