Follow Zixaphir in adding space to label in UI.checkbox.
Change settings checkbox (where space was unwanted) to HTML template.
This commit is contained in:
parent
845ebcfad4
commit
e1b63d4a99
@ -39,9 +39,9 @@ PostHiding =
|
|||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
$.on apply, 'click', PostHiding.menu.hide
|
$.on apply, 'click', PostHiding.menu.hide
|
||||||
|
|
||||||
thisPost = UI.checkbox 'thisPost', ' This post', true
|
thisPost = UI.checkbox 'thisPost', 'This post', true
|
||||||
replies = UI.checkbox 'replies', ' Hide replies', Conf['Recursive Hiding']
|
replies = UI.checkbox 'replies', 'Hide replies', Conf['Recursive Hiding']
|
||||||
makeStub = UI.checkbox 'makeStub', ' Make stub', Conf['Stubs']
|
makeStub = UI.checkbox 'makeStub', 'Make stub', Conf['Stubs']
|
||||||
|
|
||||||
Menu.menu.addEntry
|
Menu.menu.addEntry
|
||||||
el: div
|
el: div
|
||||||
@ -71,8 +71,8 @@ PostHiding =
|
|||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
$.on apply, 'click', PostHiding.menu.show
|
$.on apply, 'click', PostHiding.menu.show
|
||||||
|
|
||||||
thisPost = UI.checkbox 'thisPost', ' This post', false
|
thisPost = UI.checkbox 'thisPost', 'This post', false
|
||||||
replies = UI.checkbox 'replies', ' Show replies', false
|
replies = UI.checkbox 'replies', 'Show replies', false
|
||||||
hideStubLink = $.el 'a',
|
hideStubLink = $.el 'a',
|
||||||
textContent: 'Hide stub'
|
textContent: 'Hide stub'
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
|
|||||||
@ -63,7 +63,7 @@ ThreadHiding =
|
|||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
$.on apply, 'click', ThreadHiding.menu.hide
|
$.on apply, 'click', ThreadHiding.menu.hide
|
||||||
|
|
||||||
makeStub = UI.checkbox 'Stubs', ' Make stub'
|
makeStub = UI.checkbox 'Stubs', 'Make stub'
|
||||||
|
|
||||||
Menu.menu.addEntry
|
Menu.menu.addEntry
|
||||||
el: div
|
el: div
|
||||||
|
|||||||
@ -6,14 +6,14 @@ Header =
|
|||||||
className: 'menu-button'
|
className: 'menu-button'
|
||||||
$.extend menuButton, <%= html('<i></i>') %>
|
$.extend menuButton, <%= html('<i></i>') %>
|
||||||
|
|
||||||
barFixedToggler = UI.checkbox 'Fixed Header', ' Fixed Header'
|
barFixedToggler = UI.checkbox 'Fixed Header', 'Fixed Header'
|
||||||
headerToggler = UI.checkbox 'Header auto-hide', ' Auto-hide header'
|
headerToggler = UI.checkbox 'Header auto-hide', 'Auto-hide header'
|
||||||
scrollHeaderToggler = UI.checkbox 'Header auto-hide on scroll', ' Auto-hide header on scroll'
|
scrollHeaderToggler = UI.checkbox 'Header auto-hide on scroll', 'Auto-hide header on scroll'
|
||||||
barPositionToggler = UI.checkbox 'Bottom Header', ' Bottom header'
|
barPositionToggler = UI.checkbox 'Bottom Header', 'Bottom header'
|
||||||
linkJustifyToggler = UI.checkbox 'Centered links', ' Centered links'
|
linkJustifyToggler = UI.checkbox 'Centered links', 'Centered links'
|
||||||
customNavToggler = UI.checkbox 'Custom Board Navigation', ' Custom board navigation'
|
customNavToggler = UI.checkbox 'Custom Board Navigation', 'Custom board navigation'
|
||||||
footerToggler = UI.checkbox 'Bottom Board List', ' Hide bottom board list'
|
footerToggler = UI.checkbox 'Bottom Board List', 'Hide bottom board list'
|
||||||
shortcutToggler = UI.checkbox 'Shortcut Icons', ' Shortcut Icons'
|
shortcutToggler = UI.checkbox 'Shortcut Icons', 'Shortcut Icons'
|
||||||
editCustomNav = $.el 'a',
|
editCustomNav = $.el 'a',
|
||||||
textContent: 'Edit custom board navigation'
|
textContent: 'Edit custom board navigation'
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
|
|||||||
@ -26,10 +26,10 @@ Index =
|
|||||||
$.on @button, 'click', -> Index.update()
|
$.on @button, 'click', -> Index.update()
|
||||||
Header.addShortcut @button, 1
|
Header.addShortcut @button, 1
|
||||||
|
|
||||||
repliesEntry = el: UI.checkbox 'Show Replies', ' Show replies'
|
repliesEntry = el: UI.checkbox 'Show Replies', 'Show replies'
|
||||||
pinEntry = el: UI.checkbox 'Pin Watched Threads', ' Pin watched threads'
|
pinEntry = el: UI.checkbox 'Pin Watched Threads', 'Pin watched threads'
|
||||||
anchorEntry = el: UI.checkbox 'Anchor Hidden Threads', ' Anchor hidden threads'
|
anchorEntry = el: UI.checkbox 'Anchor Hidden Threads', 'Anchor hidden threads'
|
||||||
refNavEntry = el: UI.checkbox 'Refreshed Navigation', ' Refreshed navigation'
|
refNavEntry = el: UI.checkbox 'Refreshed Navigation', 'Refreshed navigation'
|
||||||
pinEntry.el.title = 'Move watched threads to the start of the index.'
|
pinEntry.el.title = 'Move watched threads to the start of the index.'
|
||||||
anchorEntry.el.title = 'Move hidden threads to the end of the index.'
|
anchorEntry.el.title = 'Move hidden threads to the end of the index.'
|
||||||
refNavEntry.el.title = 'Refresh index when navigating through pages.'
|
refNavEntry.el.title = 'Refresh index when navigating through pages.'
|
||||||
|
|||||||
@ -100,11 +100,8 @@ Settings =
|
|||||||
containers = [fs]
|
containers = [fs]
|
||||||
for key, arr of obj
|
for key, arr of obj
|
||||||
description = arr[1]
|
description = arr[1]
|
||||||
div = $.el 'div'
|
div = $.el 'div',
|
||||||
$.add div, [
|
<%= html('<label><input type="checkbox" name="${key}">${key}</label><span class="description">: ${description}</span>') %>
|
||||||
UI.checkbox key, key, false
|
|
||||||
$.el 'span', class: 'description', textContent: ": #{description}"
|
|
||||||
]
|
|
||||||
input = $ 'input', div
|
input = $ 'input', div
|
||||||
$.on input, 'change', $.cb.checked
|
$.on input, 'change', $.cb.checked
|
||||||
$.on input, 'change', -> @parentNode.parentNode.dataset.checked = @checked
|
$.on input, 'change', -> @parentNode.parentNode.dataset.checked = @checked
|
||||||
|
|||||||
@ -373,7 +373,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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ FappeTyme =
|
|||||||
|
|
||||||
for type in ["Fappe", "Werk"] when Conf["#{type} Tyme"]
|
for type in ["Fappe", "Werk"] when Conf["#{type} Tyme"]
|
||||||
lc = type.toLowerCase()
|
lc = type.toLowerCase()
|
||||||
el = UI.checkbox lc, " #{type} Tyme", false
|
el = UI.checkbox lc, "#{type} Tyme", false
|
||||||
el.title = "#{type} Tyme"
|
el.title = "#{type} Tyme"
|
||||||
|
|
||||||
@nodes[lc] = el.firstElementChild
|
@nodes[lc] = el.firstElementChild
|
||||||
|
|||||||
@ -315,7 +315,7 @@ Gallery =
|
|||||||
subEntries: Gallery.menu.createSubEntries()
|
subEntries: Gallery.menu.createSubEntries()
|
||||||
|
|
||||||
createSubEntry: (name) ->
|
createSubEntry: (name) ->
|
||||||
label = UI.checkbox name, " #{name}"
|
label = UI.checkbox name, name
|
||||||
input = label.firstElementChild
|
input = label.firstElementChild
|
||||||
if name in ['Fit Width', 'Fit Height', 'Hide Thumbnails']
|
if name in ['Fit Width', 'Fit Height', 'Hide Thumbnails']
|
||||||
$.on input, 'change', Gallery.cb.setFitness
|
$.on input, 'change', Gallery.cb.setFitness
|
||||||
|
|||||||
@ -295,7 +295,7 @@ ImageExpand =
|
|||||||
subEntries: subEntries
|
subEntries: subEntries
|
||||||
|
|
||||||
createSubEntry: (name, desc) ->
|
createSubEntry: (name, desc) ->
|
||||||
label = UI.checkbox name, " #{name}"
|
label = UI.checkbox name, name
|
||||||
label.title = desc
|
label.title = desc
|
||||||
input = label.firstElementChild
|
input = label.firstElementChild
|
||||||
if name in ['Fit width', 'Fit height']
|
if name in ['Fit width', 'Fit height']
|
||||||
|
|||||||
@ -13,7 +13,7 @@ Volume =
|
|||||||
|
|
||||||
return unless g.BOARD.ID in ['gif', 'wsg']
|
return unless g.BOARD.ID in ['gif', 'wsg']
|
||||||
|
|
||||||
unmuteEntry = UI.checkbox 'Allow Sound', ' Allow Sound'
|
unmuteEntry = UI.checkbox 'Allow Sound', 'Allow Sound'
|
||||||
unmuteEntry.title = Config.main['Images and Videos']['Allow Sound'][1]
|
unmuteEntry.title = Config.main['Images and Videos']['Allow Sound'][1]
|
||||||
|
|
||||||
volumeEntry = $.el 'label',
|
volumeEntry = $.el 'label',
|
||||||
|
|||||||
@ -26,7 +26,7 @@ CatalogLinks =
|
|||||||
cb: @node
|
cb: @node
|
||||||
|
|
||||||
if Conf['Catalog Links']
|
if Conf['Catalog Links']
|
||||||
CatalogLinks.el = el = UI.checkbox 'Header catalog links', ' Catalog Links'
|
CatalogLinks.el = el = UI.checkbox 'Header catalog links', 'Catalog Links'
|
||||||
el.id = 'toggleCatalog'
|
el.id = 'toggleCatalog'
|
||||||
input = $ 'input', el
|
input = $ 'input', el
|
||||||
$.on input, 'change', @toggle
|
$.on input, 'change', @toggle
|
||||||
|
|||||||
@ -33,7 +33,7 @@ ThreadUpdater =
|
|||||||
|
|
||||||
subEntries = []
|
subEntries = []
|
||||||
for name, conf of Config.updater.checkbox
|
for name, conf of Config.updater.checkbox
|
||||||
el = UI.checkbox name, " #{name}"
|
el = UI.checkbox name, name
|
||||||
el.title = conf[1]
|
el.title = conf[1]
|
||||||
input = el.firstElementChild
|
input = el.firstElementChild
|
||||||
$.on input, 'change', $.cb.checked
|
$.on input, 'change', $.cb.checked
|
||||||
|
|||||||
@ -435,7 +435,7 @@ ThreadWatcher =
|
|||||||
createSubEntry: (name, desc) ->
|
createSubEntry: (name, desc) ->
|
||||||
entry =
|
entry =
|
||||||
type: 'thread watcher'
|
type: 'thread watcher'
|
||||||
el: UI.checkbox name, " #{name.replace ' Thread Watcher', ''}"
|
el: UI.checkbox name, name.replace(' Thread Watcher', '')
|
||||||
entry.el.title = desc
|
entry.el.title = desc
|
||||||
input = entry.el.firstElementChild
|
input = entry.el.firstElementChild
|
||||||
$.on input, 'change', $.cb.checked
|
$.on input, 'change', $.cb.checked
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user