Fix report window closing before redirect.

This commit is contained in:
ccd0 2015-04-15 22:24:41 -07:00
parent 194f088587
commit f7941ebeed

View File

@ -9,6 +9,7 @@ Report =
ready: ->
if (message = $ 'h3') and /Report submitted!/.test(message.textContent)
$.globalEval 'self.close = function(){};'
location.replace Report.archive
return
link = $.el 'a',