1.7.3 - key, value of x instead of key of x
This commit is contained in:
parent
70cb09fba3
commit
3d4380494f
@ -330,9 +330,10 @@ options = ->
|
||||
div = AEOS.makeDialog 'options', 'center'
|
||||
hiddenNum = hiddenReplies.length + hiddenThreads.length
|
||||
html = '<div class="move">Options <a class=pointer>X</a></div><div>'
|
||||
for option of config
|
||||
for option, value of config
|
||||
description = value[1]
|
||||
checked = if getConfig option then "checked" else ""
|
||||
html += "<label title=\"#{option[1]}\">#{option}<input #{checked} name=\"#{option}\" type=\"checkbox\"></label><br>"
|
||||
html += "<label title=\"#{description}\">#{option}<input #{checked} name=\"#{option}\" type=\"checkbox\"></label><br>"
|
||||
html += "<div><a class=sauce>Edit Sauce</a></div>"
|
||||
html += "<div><textarea cols=50 rows=4 style=\"display: none;\"></textarea></div>"
|
||||
html += "<input type=\"button\" value=\"hidden: #{hiddenNum}\"><br>"
|
||||
|
||||
@ -370,7 +370,7 @@
|
||||
return ta.style.display ? show(ta) : hide(ta);
|
||||
};
|
||||
options = function() {
|
||||
var _i, _ref2, checked, div, hiddenNum, option;
|
||||
var _ref2, checked, description, div, hiddenNum, option, value;
|
||||
if (div = $('#options')) {
|
||||
return remove(div);
|
||||
} else {
|
||||
@ -380,9 +380,10 @@
|
||||
_ref2 = config;
|
||||
for (option in _ref2) {
|
||||
if (!__hasProp.call(_ref2, option)) continue;
|
||||
_i = _ref2[option];
|
||||
value = _ref2[option];
|
||||
description = value[1];
|
||||
checked = getConfig(option) ? "checked" : "";
|
||||
html += ("<label title=\"" + (option[1]) + "\">" + (option) + "<input " + (checked) + " name=\"" + (option) + "\" type=\"checkbox\"></label><br>");
|
||||
html += ("<label title=\"" + (description) + "\">" + (option) + "<input " + (checked) + " name=\"" + (option) + "\" type=\"checkbox\"></label><br>");
|
||||
}
|
||||
html += "<div><a class=sauce>Edit Sauce</a></div>";
|
||||
html += "<div><textarea cols=50 rows=4 style=\"display: none;\"></textarea></div>";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user