MAPG-116 don't show loading when no real link clicked

This commit is contained in:
bence committed 2020-06-10 00:40:47 +02:00
1 parent 4af6f07ce1
commit a70d59ed95
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
</a>
</h1>
<p>
<span class="bold"><a href="#" id="mapName"><?= $mapName ?></a></span><!--
<span class="bold"><a href="javascript:;" id="mapName"><?= $mapName ?></a></span><!--
--><span><!--
<?php /* Copyright (c) 2019 The Bootstrap Authors. License can be found in 'USED_SOFTWARE' in section 'Bootstrap Icons'. */ ?>
--><svg class="inline" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
+1 -1
View File
@@ -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';
}