Fix report buttons.
This commit is contained in:
parent
18ec912ec7
commit
059be4fab5
@ -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);
|
||||
},
|
||||
|
||||
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user