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
|
||||
|
||||
return unless Conf['Reply Hiding Buttons']
|
||||
sideArrows = $('.sideArrows', @nodes.root)
|
||||
$.replace sideArrows.firstChild, PostHiding.makeButton @, 'hide'
|
||||
sideArrows.removeAttribute 'class'
|
||||
|
||||
button = PostHiding.makeButton @, 'hide'
|
||||
if (sa = Site.selectors.sideArrows)
|
||||
sideArrows = $ sa, @nodes.root
|
||||
$.replace sideArrows.firstChild, button
|
||||
sideArrows.removeAttribute 'class'
|
||||
else
|
||||
$.prepend @nodes.root, button
|
||||
|
||||
menu:
|
||||
init: ->
|
||||
|
||||
@ -5,6 +5,7 @@ SW.yotsuba =
|
||||
board: '.board'
|
||||
thread: '.thread'
|
||||
postContainer: '.postContainer'
|
||||
sideArrows: '.sideArrows'
|
||||
post: '.post'
|
||||
infoRoot: '.postInfo'
|
||||
info:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user