From a70d59ed959f4f619485f1b7ee658495f05ebd9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Wed, 10 Jun 2020 00:40:47 +0200 Subject: [PATCH] MAPG-116 don't show loading when no real link clicked --- views/admin/map_editor.php | 2 +- views/templates/main_footer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/views/admin/map_editor.php b/views/admin/map_editor.php index cea6b25..6d1fe9c 100644 --- a/views/admin/map_editor.php +++ b/views/admin/map_editor.php @@ -9,7 +9,7 @@

- diff --git a/views/templates/main_footer.php b/views/templates/main_footer.php index 595f6b6..706e9d4 100644 --- a/views/templates/main_footer.php +++ b/views/templates/main_footer.php @@ -3,7 +3,7 @@ var anchors = document.getElementsByTagName('a'); for (var i = 0; i < anchors.length; i++) { var a = anchors[i]; - if (a.target !== '_blank') { + if (a.href !== 'javascript:;' && a.target !== '_blank') { a.onclick = function () { document.getElementById('loading').style.visibility = 'visible'; }