Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnn + J.M <phpMyAdmin@ZweiSteinSoft.de>2014-11-27 16:52:34 +0300
committerAnn + J.M <phpMyAdmin@ZweiSteinSoft.de>2014-11-27 16:52:34 +0300
commita47128ca4fccd6d3438bb12dea176af34af4e5b2 (patch)
tree04a97c25c7eeb1c359b9d77632154d0164dcd18b /js/error_report.js
parent3d87430aa00aa3956d7308ac1cdcda0a42fa0072 (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.js4
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();
});