Always add a space after generated checkboxes.
This commit is contained in:
parent
12c22500a8
commit
ff5fc5d63d
@ -4386,10 +4386,10 @@
|
|||||||
});
|
});
|
||||||
box = UI.checkbox;
|
box = UI.checkbox;
|
||||||
barFixedToggler = box('Fixed Header', 'Fixed Header');
|
barFixedToggler = box('Fixed Header', 'Fixed Header');
|
||||||
headerToggler = box('Header auto-hide', ' Auto-hide header');
|
headerToggler = box('Header auto-hide', 'Auto-hide header');
|
||||||
scrollHeaderToggler = box('Header auto-hide on scroll', ' Auto-hide header on scroll');
|
scrollHeaderToggler = box('Header auto-hide on scroll', 'Auto-hide header on scroll');
|
||||||
barPositionToggler = box('Bottom Header', ' Bottom header');
|
barPositionToggler = box('Bottom Header', 'Bottom header');
|
||||||
customNavToggler = box('Custom Board Navigation', ' Custom board navigation');
|
customNavToggler = box('Custom Board Navigation', 'Custom board navigation');
|
||||||
editCustomNav = $.el('a', {
|
editCustomNav = $.el('a', {
|
||||||
textContent: 'Edit custom board navigation',
|
textContent: 'Edit custom board navigation',
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
@ -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);
|
||||||
|
|||||||
@ -4412,10 +4412,10 @@
|
|||||||
});
|
});
|
||||||
box = UI.checkbox;
|
box = UI.checkbox;
|
||||||
barFixedToggler = box('Fixed Header', 'Fixed Header');
|
barFixedToggler = box('Fixed Header', 'Fixed Header');
|
||||||
headerToggler = box('Header auto-hide', ' Auto-hide header');
|
headerToggler = box('Header auto-hide', 'Auto-hide header');
|
||||||
scrollHeaderToggler = box('Header auto-hide on scroll', ' Auto-hide header on scroll');
|
scrollHeaderToggler = box('Header auto-hide on scroll', 'Auto-hide header on scroll');
|
||||||
barPositionToggler = box('Bottom Header', ' Bottom header');
|
barPositionToggler = box('Bottom Header', 'Bottom header');
|
||||||
customNavToggler = box('Custom Board Navigation', ' Custom board navigation');
|
customNavToggler = box('Custom Board Navigation', 'Custom board navigation');
|
||||||
editCustomNav = $.el('a', {
|
editCustomNav = $.el('a', {
|
||||||
textContent: 'Edit custom board navigation',
|
textContent: 'Edit custom board navigation',
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
@ -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);
|
||||||
|
|||||||
@ -9,10 +9,10 @@ Header =
|
|||||||
box = UI.checkbox
|
box = UI.checkbox
|
||||||
|
|
||||||
barFixedToggler = box 'Fixed Header', 'Fixed Header'
|
barFixedToggler = box 'Fixed Header', 'Fixed Header'
|
||||||
headerToggler = box 'Header auto-hide', ' Auto-hide header'
|
headerToggler = box 'Header auto-hide', 'Auto-hide header'
|
||||||
scrollHeaderToggler = box 'Header auto-hide on scroll', ' Auto-hide header on scroll'
|
scrollHeaderToggler = box 'Header auto-hide on scroll', 'Auto-hide header on scroll'
|
||||||
barPositionToggler = box 'Bottom Header', ' Bottom header'
|
barPositionToggler = box 'Bottom Header', 'Bottom header'
|
||||||
customNavToggler = box 'Custom Board Navigation', ' Custom board navigation'
|
customNavToggler = box 'Custom Board Navigation', 'Custom board navigation'
|
||||||
|
|
||||||
editCustomNav = $.el 'a',
|
editCustomNav = $.el 'a',
|
||||||
textContent: 'Edit custom board navigation'
|
textContent: 'Edit custom board navigation'
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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'
|
||||||
|
|||||||
@ -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']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user