Always add a space after generated checkboxes.
This commit is contained in:
parent
12c22500a8
commit
ff5fc5d63d
@ -7264,7 +7264,7 @@
|
||||
name: name,
|
||||
checked: checked
|
||||
});
|
||||
$.add(label, [input, $.tn(text)]);
|
||||
$.add(label, [input, $.tn(" " + text)]);
|
||||
return label;
|
||||
};
|
||||
return {
|
||||
@ -13749,7 +13749,7 @@
|
||||
|
||||
ThreadUpdater = {
|
||||
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']) {
|
||||
return;
|
||||
}
|
||||
@ -13779,11 +13779,12 @@
|
||||
$.on(this.timer, 'click', this.update);
|
||||
$.on(this.status, 'click', this.update);
|
||||
subEntries = [];
|
||||
box = UI.checkbox;
|
||||
_ref = Config.updater.checkbox;
|
||||
for (name in _ref) {
|
||||
conf = _ref[name];
|
||||
checked = Conf[name] ? 'checked' : '';
|
||||
el = UI.checkbox(name, " " + name);
|
||||
el = box(name, name);
|
||||
input = el.firstElementChild;
|
||||
$.on(input, 'change', $.cb.checked);
|
||||
if (input.name === 'Scroll BG') {
|
||||
@ -14862,7 +14863,7 @@
|
||||
var entry, input;
|
||||
entry = {
|
||||
type: 'thread watcher',
|
||||
el: UI.checkbox(name, " " + name)
|
||||
el: UI.checkbox(name, name)
|
||||
};
|
||||
input = entry.el.firstElementChild;
|
||||
$.on(input, 'change', $.cb.checked);
|
||||
|
||||
@ -7283,7 +7283,7 @@
|
||||
name: name,
|
||||
checked: checked
|
||||
});
|
||||
$.add(label, [input, $.tn(text)]);
|
||||
$.add(label, [input, $.tn(" " + text)]);
|
||||
return label;
|
||||
};
|
||||
return {
|
||||
@ -13773,7 +13773,7 @@
|
||||
|
||||
ThreadUpdater = {
|
||||
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']) {
|
||||
return;
|
||||
}
|
||||
@ -13803,11 +13803,12 @@
|
||||
$.on(this.timer, 'click', this.update);
|
||||
$.on(this.status, 'click', this.update);
|
||||
subEntries = [];
|
||||
box = UI.checkbox;
|
||||
_ref = Config.updater.checkbox;
|
||||
for (name in _ref) {
|
||||
conf = _ref[name];
|
||||
checked = Conf[name] ? 'checked' : '';
|
||||
el = UI.checkbox(name, " " + name);
|
||||
el = box(name, name);
|
||||
input = el.firstElementChild;
|
||||
$.on(input, 'change', $.cb.checked);
|
||||
if (input.name === 'Scroll BG') {
|
||||
@ -14886,7 +14887,7 @@
|
||||
var entry, input;
|
||||
entry = {
|
||||
type: 'thread watcher',
|
||||
el: UI.checkbox(name, " " + name)
|
||||
el: UI.checkbox(name, name)
|
||||
};
|
||||
input = entry.el.firstElementChild;
|
||||
$.on(input, 'change', $.cb.checked);
|
||||
|
||||
@ -379,7 +379,7 @@ UI = do ->
|
||||
checked = Conf[name] unless checked?
|
||||
label = $.el 'label'
|
||||
input = $.el 'input', {type: 'checkbox', name, checked}
|
||||
$.add label, [input, $.tn text]
|
||||
$.add label, [input, $.tn " #{text}"]
|
||||
label
|
||||
|
||||
return {
|
||||
|
||||
@ -25,9 +25,10 @@ ThreadUpdater =
|
||||
$.on @status, 'click', @update
|
||||
|
||||
subEntries = []
|
||||
box = UI.checkbox
|
||||
for name, conf of Config.updater.checkbox
|
||||
checked = if Conf[name] then 'checked' else ''
|
||||
el = UI.checkbox name, " #{name}"
|
||||
el = box name, name
|
||||
input = el.firstElementChild
|
||||
$.on input, 'change', $.cb.checked
|
||||
if input.name is 'Scroll BG'
|
||||
|
||||
@ -401,7 +401,7 @@ ThreadWatcher =
|
||||
createSubEntry: (name, desc) ->
|
||||
entry =
|
||||
type: 'thread watcher'
|
||||
el: UI.checkbox name, " #{name}"
|
||||
el: UI.checkbox name, name
|
||||
input = entry.el.firstElementChild
|
||||
$.on input, 'change', $.cb.checked
|
||||
$.on input, 'change', ThreadWatcher.refresh if name in ['Current Board', 'Show Unread Count']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user