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

@ -4386,10 +4386,10 @@
});
box = UI.checkbox;
barFixedToggler = box('Fixed Header', 'Fixed Header');
headerToggler = box('Header auto-hide', ' Auto-hide header');
scrollHeaderToggler = box('Header auto-hide on scroll', ' Auto-hide header on scroll');
barPositionToggler = box('Bottom Header', ' Bottom header');
customNavToggler = box('Custom Board Navigation', ' Custom board navigation');
headerToggler = box('Header auto-hide', 'Auto-hide header');
scrollHeaderToggler = box('Header auto-hide on scroll', 'Auto-hide header on scroll');
barPositionToggler = box('Bottom Header', 'Bottom header');
customNavToggler = box('Custom Board Navigation', 'Custom board navigation');
editCustomNav = $.el('a', {
textContent: 'Edit custom board navigation',
href: 'javascript:;'
@ -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);

View File

@ -4412,10 +4412,10 @@
});
box = UI.checkbox;
barFixedToggler = box('Fixed Header', 'Fixed Header');
headerToggler = box('Header auto-hide', ' Auto-hide header');
scrollHeaderToggler = box('Header auto-hide on scroll', ' Auto-hide header on scroll');
barPositionToggler = box('Bottom Header', ' Bottom header');
customNavToggler = box('Custom Board Navigation', ' Custom board navigation');
headerToggler = box('Header auto-hide', 'Auto-hide header');
scrollHeaderToggler = box('Header auto-hide on scroll', 'Auto-hide header on scroll');
barPositionToggler = box('Bottom Header', 'Bottom header');
customNavToggler = box('Custom Board Navigation', 'Custom board navigation');
editCustomNav = $.el('a', {
textContent: 'Edit custom board navigation',
href: 'javascript:;'
@ -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);

View File

@ -9,10 +9,10 @@ Header =
box = UI.checkbox
barFixedToggler = box 'Fixed Header', 'Fixed Header'
headerToggler = box 'Header auto-hide', ' Auto-hide header'
scrollHeaderToggler = box 'Header auto-hide on scroll', ' Auto-hide header on scroll'
barPositionToggler = box 'Bottom Header', ' Bottom header'
customNavToggler = box 'Custom Board Navigation', ' Custom board navigation'
headerToggler = box 'Header auto-hide', 'Auto-hide header'
scrollHeaderToggler = box 'Header auto-hide on scroll', 'Auto-hide header on scroll'
barPositionToggler = box 'Bottom Header', 'Bottom header'
customNavToggler = box 'Custom Board Navigation', 'Custom board navigation'
editCustomNav = $.el 'a',
textContent: 'Edit custom board navigation'

View File

@ -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 {

View File

@ -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'

View File

@ -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']