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: ->
Settings.open 'Advanced'
settings = $.id 'fourchanx-settings'
$('input[name=boardnav]', settings).focus()
$('textarea[name=boardnav]', settings).focus()
hashScroll: ->
hash = @location.hash[1..]

View File

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