Lines 213-218
$( document ).ready( function () {
Link Here
|
213 |
var pref_value = this.value; |
213 |
var pref_value = this.value; |
214 |
var prefs = pref_value.split("|"); |
214 |
var prefs = pref_value.split("|"); |
215 |
|
215 |
|
|
|
216 |
var additional_items = []; |
217 |
if ( additional_db_columns.hasOwnProperty(datasource) ) { |
218 |
additional_items = additional_db_columns[datasource]; |
219 |
} |
216 |
$.getJSON( themelang + "/modules/admin/preferences/" + datasource + ".json", function( data ){ |
220 |
$.getJSON( themelang + "/modules/admin/preferences/" + datasource + ".json", function( data ){ |
217 |
var items = []; |
221 |
var items = []; |
218 |
var checked = ""; |
222 |
var checked = ""; |
Lines 224-229
$( document ).ready( function () {
Link Here
|
224 |
} |
228 |
} |
225 |
items.push('<label><input class="dbcolumn_selection" type="checkbox" id="' + key + '"' + checked + ' name="pref" value="' + val + '" /> ' + key + '</label>'); |
229 |
items.push('<label><input class="dbcolumn_selection" type="checkbox" id="' + key + '"' + checked + ' name="pref" value="' + val + '" /> ' + key + '</label>'); |
226 |
}); |
230 |
}); |
|
|
231 |
|
232 |
$(additional_items).each(function(){ |
233 |
items.push('<label><input class="dbcolumn_selection" type="checkbox" id="' + this['key'] + '"' + this['checked'] + ' name="pref" value="' + this['val'] + '" /> ' + this['description'] + '</label>'); |
234 |
}); |
227 |
$("<div/>", { |
235 |
$("<div/>", { |
228 |
"class": "columns-2", |
236 |
"class": "columns-2", |
229 |
html: items.join("") |
237 |
html: items.join("") |
230 |
- |
|
|