Fix errors from reply hiding button placement.
This commit is contained in:
parent
ffdb2cbd5c
commit
08b8b878e1
@ -24,9 +24,14 @@ PostHiding =
|
|||||||
Recursive.add PostHiding.hide, @, data.makeStub, true
|
Recursive.add PostHiding.hide, @, data.makeStub, true
|
||||||
|
|
||||||
return unless Conf['Reply Hiding Buttons']
|
return unless Conf['Reply Hiding Buttons']
|
||||||
sideArrows = $('.sideArrows', @nodes.root)
|
|
||||||
$.replace sideArrows.firstChild, PostHiding.makeButton @, 'hide'
|
button = PostHiding.makeButton @, 'hide'
|
||||||
sideArrows.removeAttribute 'class'
|
if (sa = Site.selectors.sideArrows)
|
||||||
|
sideArrows = $ sa, @nodes.root
|
||||||
|
$.replace sideArrows.firstChild, button
|
||||||
|
sideArrows.removeAttribute 'class'
|
||||||
|
else
|
||||||
|
$.prepend @nodes.root, button
|
||||||
|
|
||||||
menu:
|
menu:
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
@ -5,6 +5,7 @@ SW.yotsuba =
|
|||||||
board: '.board'
|
board: '.board'
|
||||||
thread: '.thread'
|
thread: '.thread'
|
||||||
postContainer: '.postContainer'
|
postContainer: '.postContainer'
|
||||||
|
sideArrows: '.sideArrows'
|
||||||
post: '.post'
|
post: '.post'
|
||||||
infoRoot: '.postInfo'
|
infoRoot: '.postInfo'
|
||||||
info:
|
info:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user