View | Details | Raw Unified | Return to bug 27321
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+5 lines)
Lines 3324-3329 label { Link Here
3324
        display: block;
3324
        display: block;
3325
        margin: .5em 0;
3325
        margin: .5em 0;
3326
    }
3326
    }
3327
3328
    &.disabled {
3329
        color: #CCC;
3330
        cursor: not-allowed;
3331
    }
3327
}
3332
}
3328
3333
3329
.radio {
3334
.radio {
(-)a/koha-tmpl/intranet-tmpl/prog/js/pages/preferences.js (-2 / +4 lines)
Lines 233-238 $( document ).ready( function () { Link Here
233
        $.getJSON( themelang + "/modules/admin/preferences/" + datasource + ".json", function( data ){
233
        $.getJSON( themelang + "/modules/admin/preferences/" + datasource + ".json", function( data ){
234
            var items = [];
234
            var items = [];
235
            var checked = "";
235
            var checked = "";
236
            var style = "";
236
            $.each( data, function( key, val ){
237
            $.each( data, function( key, val ){
237
                if( prefs.indexOf( val ) >= 0 ){
238
                if( prefs.indexOf( val ) >= 0 ){
238
                    checked = ' checked="checked" ';
239
                    checked = ' checked="checked" ';
Lines 240-251 $( document ).ready( function () { Link Here
240
                    checked = "";
241
                    checked = "";
241
                }
242
                }
242
                if( exclusions.indexOf( val ) >= 0 ){
243
                if( exclusions.indexOf( val ) >= 0 ){
244
                    style = "disabled";
243
                    disabled = ' disabled="disabled" ';
245
                    disabled = ' disabled="disabled" ';
244
                    checked  = "";
246
                    checked  = "";
245
                } else {
247
                } else {
248
                    style = "";
246
                    disabled = "";
249
                    disabled = "";
247
                }
250
                }
248
                items.push('<label><input class="dbcolumn_selection" type="checkbox" id="' + key + '"' + checked + disabled + ' name="pref" value="' + val + '" /> ' + key + '</label>');
251
                items.push('<label class="' + style +'"><input class="dbcolumn_selection" type="checkbox" id="' + key + '"' + checked + disabled + ' name="pref" value="' + val + '" /> ' + key + '</label>');
249
            });
252
            });
250
            $("<div/>", {
253
            $("<div/>", {
251
                "class": "columns-2",
254
                "class": "columns-2",
252
- 

Return to bug 27321