Fix [ - ] for replies hiding the stub.

This commit is contained in:
Nicolas Stepien 2013-02-28 19:56:34 +01:00
parent bb3c25b415
commit 5d68f6fcb7
2 changed files with 2 additions and 2 deletions

View File

@ -2143,7 +2143,7 @@
if (!Conf['Hiding Buttons']) { if (!Conf['Hiding Buttons']) {
return; return;
} }
return $.replace(this.nodes.root.firstElementChild, ReplyHiding.makeButton(this, 'hide')); return $.replace($('.sideArrows', this.nodes.root), ReplyHiding.makeButton(this, 'hide'));
}, },
getHiddenPosts: function() { getHiddenPosts: function() {
var hiddenPosts; var hiddenPosts;

View File

@ -1064,7 +1064,7 @@ ReplyHiding =
else else
Recursive.hide @, data.makeStub Recursive.hide @, data.makeStub
return unless Conf['Hiding Buttons'] return unless Conf['Hiding Buttons']
$.replace @nodes.root.firstElementChild, ReplyHiding.makeButton @, 'hide' $.replace $('.sideArrows', @nodes.root), ReplyHiding.makeButton @, 'hide'
getHiddenPosts: -> getHiddenPosts: ->
hiddenPosts = $.get "hiddenPosts.#{g.BOARD}" hiddenPosts = $.get "hiddenPosts.#{g.BOARD}"