diff options
author | Ann + J.M <phpMyAdmin@ZweiSteinSoft.de> | 2014-11-27 16:52:34 +0300 |
---|---|---|
committer | Ann + J.M <phpMyAdmin@ZweiSteinSoft.de> | 2014-11-27 16:52:34 +0300 |
commit | a47128ca4fccd6d3438bb12dea176af34af4e5b2 (patch) | |
tree | 04a97c25c7eeb1c359b9d77632154d0164dcd18b /js/error_report.js | |
parent | 3d87430aa00aa3956d7308ac1cdcda0a42fa0072 (diff) |
[FIX] JS error reporting: Preserve hash fragment
The JS error reporting notification bar closing link points to href="#".
Don't allow navigating to the target, so our hash history is not
overwritten.
Signed-off-by: Ann + J.M <phpMyAdmin@ZweiSteinSoft.de>
Diffstat (limited to 'js/error_report.js')
-rw-r--r-- | js/error_report.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/error_report.js b/js/error_report.js index 3d00b39466..248397427e 100644 --- a/js/error_report.js +++ b/js/error_report.js @@ -151,7 +151,9 @@ var ErrorReport = { * * @return void */ - _removeErrorNotification: function () { + _removeErrorNotification: function (e) { + // don't remove the hash fragment by navigating to # + e.preventDefault(); $("#error_notification").fadeOut(function () { $(this).remove(); }); |