Always add a space after generated checkboxes.

This commit is contained in:
Zixaphir 2015-01-12 17:33:00 -07:00
parent 12c22500a8
commit ff5fc5d63d
6 changed files with 26 additions and 23 deletions

View File

@ -7264,7 +7264,7 @@
name: name, name: name,
checked: checked checked: checked
}); });
$.add(label, [input, $.tn(text)]); $.add(label, [input, $.tn(" " + text)]);
return label; return label;
}; };
return { return {
@ -13749,7 +13749,7 @@
ThreadUpdater = { ThreadUpdater = {
init: function() { init: function() {
var checked, conf, el, input, name, sc, subEntries, _ref; var box, checked, conf, el, input, name, sc, subEntries, _ref;
if (g.VIEW !== 'thread' || !Conf['Thread Updater']) { if (g.VIEW !== 'thread' || !Conf['Thread Updater']) {
return; return;
} }
@ -13779,11 +13779,12 @@
$.on(this.timer, 'click', this.update); $.on(this.timer, 'click', this.update);
$.on(this.status, 'click', this.update); $.on(this.status, 'click', this.update);
subEntries = []; subEntries = [];
box = UI.checkbox;
_ref = Config.updater.checkbox; _ref = Config.updater.checkbox;
for (name in _ref) { for (name in _ref) {
conf = _ref[name]; conf = _ref[name];
checked = Conf[name] ? 'checked' : ''; checked = Conf[name] ? 'checked' : '';
el = UI.checkbox(name, " " + name); el = box(name, name);
input = el.firstElementChild; input = el.firstElementChild;
$.on(input, 'change', $.cb.checked); $.on(input, 'change', $.cb.checked);
if (input.name === 'Scroll BG') { if (input.name === 'Scroll BG') {
@ -14862,7 +14863,7 @@
var entry, input; var entry, input;
entry = { entry = {
type: 'thread watcher', type: 'thread watcher',
el: UI.checkbox(name, " " + name) el: UI.checkbox(name, name)
}; };
input = entry.el.firstElementChild; input = entry.el.firstElementChild;
$.on(input, 'change', $.cb.checked); $.on(input, 'change', $.cb.checked);

View File

@ -7283,7 +7283,7 @@
name: name, name: name,
checked: checked checked: checked
}); });
$.add(label, [input, $.tn(text)]); $.add(label, [input, $.tn(" " + text)]);
return label; return label;
}; };
return { return {
@ -13773,7 +13773,7 @@
ThreadUpdater = { ThreadUpdater = {
init: function() { init: function() {
var checked, conf, el, input, name, sc, subEntries, _ref; var box, checked, conf, el, input, name, sc, subEntries, _ref;
if (g.VIEW !== 'thread' || !Conf['Thread Updater']) { if (g.VIEW !== 'thread' || !Conf['Thread Updater']) {
return; return;
} }
@ -13803,11 +13803,12 @@
$.on(this.timer, 'click', this.update); $.on(this.timer, 'click', this.update);
$.on(this.status, 'click', this.update); $.on(this.status, 'click', this.update);
subEntries = []; subEntries = [];
box = UI.checkbox;
_ref = Config.updater.checkbox; _ref = Config.updater.checkbox;
for (name in _ref) { for (name in _ref) {
conf = _ref[name]; conf = _ref[name];
checked = Conf[name] ? 'checked' : ''; checked = Conf[name] ? 'checked' : '';
el = UI.checkbox(name, " " + name); el = box(name, name);
input = el.firstElementChild; input = el.firstElementChild;
$.on(input, 'change', $.cb.checked); $.on(input, 'change', $.cb.checked);
if (input.name === 'Scroll BG') { if (input.name === 'Scroll BG') {
@ -14886,7 +14887,7 @@
var entry, input; var entry, input;
entry = { entry = {
type: 'thread watcher', type: 'thread watcher',
el: UI.checkbox(name, " " + name) el: UI.checkbox(name, name)
}; };
input = entry.el.firstElementChild; input = entry.el.firstElementChild;
$.on(input, 'change', $.cb.checked); $.on(input, 'change', $.cb.checked);

View File

@ -379,7 +379,7 @@ UI = do ->
checked = Conf[name] unless checked? checked = Conf[name] unless checked?
label = $.el 'label' label = $.el 'label'
input = $.el 'input', {type: 'checkbox', name, checked} input = $.el 'input', {type: 'checkbox', name, checked}
$.add label, [input, $.tn text] $.add label, [input, $.tn " #{text}"]
label label
return { return {

View File

@ -25,9 +25,10 @@ ThreadUpdater =
$.on @status, 'click', @update $.on @status, 'click', @update
subEntries = [] subEntries = []
box = UI.checkbox
for name, conf of Config.updater.checkbox for name, conf of Config.updater.checkbox
checked = if Conf[name] then 'checked' else '' checked = if Conf[name] then 'checked' else ''
el = UI.checkbox name, " #{name}" el = box name, name
input = el.firstElementChild input = el.firstElementChild
$.on input, 'change', $.cb.checked $.on input, 'change', $.cb.checked
if input.name is 'Scroll BG' if input.name is 'Scroll BG'

View File

@ -401,7 +401,7 @@ ThreadWatcher =
createSubEntry: (name, desc) -> createSubEntry: (name, desc) ->
entry = entry =
type: 'thread watcher' type: 'thread watcher'
el: UI.checkbox name, " #{name}" el: UI.checkbox name, name
input = entry.el.firstElementChild input = entry.el.firstElementChild
$.on input, 'change', $.cb.checked $.on input, 'change', $.cb.checked
$.on input, 'change', ThreadWatcher.refresh if name in ['Current Board', 'Show Unread Count'] $.on input, 'change', ThreadWatcher.refresh if name in ['Current Board', 'Show Unread Count']