Fix saving options with a ' in it.
This commit is contained in:
parent
751077d3ac
commit
c2a2a7c5bf
@ -2131,7 +2131,7 @@
|
||||
checked = conf[key] ? 'checked' : '';
|
||||
description = arr[1];
|
||||
li = $.el('li', {
|
||||
innerHTML: "<label><input type=checkbox name='" + key + "' " + checked + ">" + key + "</label><span class=description>: " + description + "</span>"
|
||||
innerHTML: "<label><input type=checkbox name=\"" + key + "\" " + checked + ">" + key + "</label><span class=description>: " + description + "</span>"
|
||||
});
|
||||
$.on($('input', li), 'click', $.cb.checked);
|
||||
$.add(ul, li);
|
||||
|
||||
@ -1664,7 +1664,7 @@ options =
|
||||
checked = if conf[key] then 'checked' else ''
|
||||
description = arr[1]
|
||||
li = $.el 'li',
|
||||
innerHTML: "<label><input type=checkbox name='#{key}' #{checked}>#{key}</label><span class=description>: #{description}</span>"
|
||||
innerHTML: "<label><input type=checkbox name=\"#{key}\" #{checked}>#{key}</label><span class=description>: #{description}</span>"
|
||||
$.on $('input', li), 'click', $.cb.checked
|
||||
$.add ul, li
|
||||
$.add $('#main_tab + div', dialog), ul
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user