diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2014-12-10 13:05:19 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2014-12-10 13:05:19 +0300 |
commit | 8795f7a104e8bfa85c6df14a68927f0a9d88efaf (patch) | |
tree | ee01a06dc44bcfa386e19dc9e58dea94ab3bd52e /js/error_report.js | |
parent | 9f58a8188a334c7865509218a76a7c068ab16f0e (diff) |
bug #4634 Error reporting creates an infinite loop
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js/error_report.js')
-rw-r--r-- | js/error_report.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/error_report.js b/js/error_report.js index 248397427e..960e997d40 100644 --- a/js/error_report.js +++ b/js/error_report.js @@ -152,8 +152,10 @@ var ErrorReport = { * @return void */ _removeErrorNotification: function (e) { - // don't remove the hash fragment by navigating to # - e.preventDefault(); + if (e) { + // don't remove the hash fragment by navigating to # + e.preventDefault(); + } $("#error_notification").fadeOut(function () { $(this).remove(); }); |