Revert "Partially revert "improve error handling""
This reverts commit 05d43defea09c1a2dcfc341e714625188729cf57.
This commit is contained in:
parent
d71d2e6edc
commit
d3e47c9a94
@ -86,7 +86,7 @@ Header =
|
|||||||
# Wait for #boardNavMobile instead of #boardNavDesktop,
|
# Wait for #boardNavMobile instead of #boardNavDesktop,
|
||||||
# it might be incomplete otherwise.
|
# it might be incomplete otherwise.
|
||||||
$.asap (-> $.id('boardNavMobile') or d.readyState isnt 'loading'), Header.setBoardList
|
$.asap (-> $.id('boardNavMobile') or d.readyState isnt 'loading'), Header.setBoardList
|
||||||
$.prepend d.body, @bar
|
$.prepend d.body, [@bar, @noticesRoot]
|
||||||
$.add d.body, Header.hover
|
$.add d.body, Header.hover
|
||||||
@setBarPosition Conf['Bottom Header']
|
@setBarPosition Conf['Bottom Header']
|
||||||
@
|
@
|
||||||
@ -146,7 +146,7 @@ Header =
|
|||||||
|
|
||||||
$.rm $ '#navtopright', fullBoardList
|
$.rm $ '#navtopright', fullBoardList
|
||||||
$.add boardList, fullBoardList
|
$.add boardList, fullBoardList
|
||||||
$.add Header.bar, [Header.boardList, Header.shortcuts, Header.noticesRoot, Header.toggle]
|
$.add Header.bar, [Header.boardList, Header.shortcuts, Header.toggle]
|
||||||
|
|
||||||
Header.setCustomNav Conf['Custom Board Navigation']
|
Header.setCustomNav Conf['Custom Board Navigation']
|
||||||
Header.generateBoardList Conf['boardnav'].replace /(\r\n|\n|\r)/g, ' '
|
Header.generateBoardList Conf['boardnav'].replace /(\r\n|\n|\r)/g, ' '
|
||||||
@ -313,18 +313,15 @@ Header =
|
|||||||
'bottom-header'
|
'bottom-header'
|
||||||
'top-header'
|
'top-header'
|
||||||
'bottom'
|
'bottom'
|
||||||
'after'
|
|
||||||
] else [
|
] else [
|
||||||
'top-header'
|
'top-header'
|
||||||
'bottom-header'
|
'bottom-header'
|
||||||
'top'
|
'top'
|
||||||
'add'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
$.addClass doc, args[0]
|
$.addClass doc, args[0]
|
||||||
$.rmClass doc, args[1]
|
$.rmClass doc, args[1]
|
||||||
Header.bar.parentNode.className = args[2]
|
Header.bar.parentNode.className = args[2]
|
||||||
$[args[3]] Header.bar, Header.noticesRoot
|
|
||||||
|
|
||||||
toggleBarPosition: ->
|
toggleBarPosition: ->
|
||||||
$.cb.checked.call @
|
$.cb.checked.call @
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user