From c2d60393587123e37b71951bf36619054e8137c4 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Mon, 12 Jan 2015 17:35:37 -0700 Subject: [PATCH] muh placebo --- builds/appchan-x.user.js | 7 ++++--- builds/crx/script.js | 7 ++++--- src/General/Settings.coffee | 6 ++++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 9bdcd66f0..b581429ea 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -19414,10 +19414,11 @@ return $.cb.value.call(this); }, style: function(section) { - var arr, box, description, div, fs, html, input, inputs, items, key, name, nodes, obj, span, type, value, _i, _len, _ref; + var arr, box, check, description, div, fs, html, input, inputs, items, key, name, nodes, obj, span, type, value, _i, _len, _ref; nodes = $.frag(); items = {}; inputs = {}; + box = UI.checkbox; _ref = Config.style; for (key in _ref) { obj = _ref[key]; @@ -19452,8 +19453,8 @@ textContent: description }); span.style.display = 'none'; - $.add(div, [box = UI.checkbox(key, key), span]); - box.className = 'option'; + $.add(div, [check = box(key, key), span]); + check.className = 'option'; input = $('input', div); } items[key] = Conf[key]; diff --git a/builds/crx/script.js b/builds/crx/script.js index 33b9de9ca..f0ba73d25 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -19446,10 +19446,11 @@ return $.cb.value.call(this); }, style: function(section) { - var arr, box, description, div, fs, html, input, inputs, items, key, name, nodes, obj, span, type, value, _i, _len, _ref; + var arr, box, check, description, div, fs, html, input, inputs, items, key, name, nodes, obj, span, type, value, _i, _len, _ref; nodes = $.frag(); items = {}; inputs = {}; + box = UI.checkbox; _ref = Config.style; for (key in _ref) { obj = _ref[key]; @@ -19484,8 +19485,8 @@ textContent: description }); span.style.display = 'none'; - $.add(div, [box = UI.checkbox(key, key), span]); - box.className = 'option'; + $.add(div, [check = box(key, key), span]); + check.className = 'option'; input = $('input', div); } items[key] = Conf[key]; diff --git a/src/General/Settings.coffee b/src/General/Settings.coffee index b259aaa15..8da83aa80 100755 --- a/src/General/Settings.coffee +++ b/src/General/Settings.coffee @@ -440,6 +440,8 @@ Settings = items = {} inputs = {} + box = UI.checkbox + for key, obj of Config.style fs = $.el 'fieldset', @@ -475,11 +477,11 @@ Settings = span.style.display = 'none' $.add div, [ - box = UI.checkbox key, key + check = box key, key span ] - box.className = 'option' + check.className = 'option' input = $ 'input', div