Fix errors from reply hiding button placement.

This commit is contained in:
ccd0 2016-10-09 22:19:49 -07:00
parent ffdb2cbd5c
commit 08b8b878e1
2 changed files with 9 additions and 3 deletions

View File

@ -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: ->

View File

@ -5,6 +5,7 @@ SW.yotsuba =
board: '.board'
thread: '.thread'
postContainer: '.postContainer'
sideArrows: '.sideArrows'
post: '.post'
infoRoot: '.postInfo'
info: