Parenthesize assignment in if.
This commit is contained in:
parent
f8bfb87e46
commit
1a55bf69aa
@ -56,7 +56,7 @@ Report =
|
|||||||
|
|
||||||
archive: ->
|
archive: ->
|
||||||
Redirect.init()
|
Redirect.init()
|
||||||
return unless url = Redirect.to 'report', {boardID: g.BOARD.ID, postID: Report.postID}
|
return unless (url = Redirect.to 'report', {boardID: g.BOARD.ID, postID: Report.postID})
|
||||||
|
|
||||||
if (message = $ 'h3') and /Report submitted!/.test(message.textContent)
|
if (message = $ 'h3') and /Report submitted!/.test(message.textContent)
|
||||||
if location.hash is '#redirect'
|
if location.hash is '#redirect'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user