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 |
- |
|
|