fix "Edit custom board navigation"

This commit is contained in:
ccd0 2014-07-20 17:44:17 -07:00
parent f411f6cca5
commit 9cdc6f1b47
2 changed files with 5 additions and 5 deletions

View File

@ -360,7 +360,7 @@ Header =
editCustomNav: -> editCustomNav: ->
Settings.open 'Advanced' Settings.open 'Advanced'
settings = $.id 'fourchanx-settings' settings = $.id 'fourchanx-settings'
$('input[name=boardnav]', settings).focus() $('textarea[name=boardnav]', settings).focus()
hashScroll: -> hashScroll: ->
hash = @location.hash[1..] hash = @location.hash[1..]

View File

@ -313,9 +313,9 @@ Settings =
interval.value = Conf['Interval'] interval.value = Conf['Interval']
customCSS.checked = Conf['Custom CSS'] customCSS.checked = Conf['Custom CSS']
inputs['usercss'].disabled = !Conf['Custom CSS'] inputs['usercss'].disabled = !Conf['Custom CSS']
$.on interval, 'change', ThreadUpdater.cb.interval $.on interval, 'change', ThreadUpdater.cb.interval
$.on customCSS, 'change', Settings.togglecss $.on customCSS, 'change', Settings.togglecss
$.on $.id('apply-css'), 'click', Settings.usercss $.on $('#apply-css', section), 'click', Settings.usercss
archBoards = {} archBoards = {}
for {name, boards, files, software, withCredentials} in Redirect.archives for {name, boards, files, software, withCredentials} in Redirect.archives
@ -357,7 +357,7 @@ Settings =
boardSelect = $('#archive-board-select', section) boardSelect = $('#archive-board-select', section)
$.add boardSelect, boardOptions $.add boardSelect, boardOptions
table = $.id 'archive-table' table = $('#archive-table', section)
$.on boardSelect, 'change', -> $.on boardSelect, 'change', ->
$('tbody > :not([hidden])', table).hidden = true $('tbody > :not([hidden])', table).hidden = true
$("tbody > .#{@value}", table).hidden = false $("tbody > .#{@value}", table).hidden = false