Fix report buttons.

This commit is contained in:
Nicolas Stepien 2012-04-29 15:07:55 +02:00
parent 18ec912ec7
commit 059be4fab5
2 changed files with 2 additions and 2 deletions

View File

@ -3427,7 +3427,7 @@
var a;
if (!(a = $('.reportbutton', post.el))) {
a = ReportButton.a.cloneNode(true);
$.after($('span[id]', post.el), [$.tn(' '), a]);
$.add($('.postInfo', post.el), a);
}
return $.on(a, 'click', ReportButton.report);
},

View File

@ -2663,7 +2663,7 @@ ReportButton =
node: (post) ->
unless a = $ '.reportbutton', post.el
a = ReportButton.a.cloneNode true
$.after $('span[id]', post.el), [$.tn(' '), a]
$.add $('.postInfo', post.el), a
$.on a, 'click', ReportButton.report
report: ->
url = "//sys.4chan.org/#{g.BOARD}/imgboard.php?mode=report&no=#{$.x('preceding-sibling::input', @).name}"