Merged in bugfix/MAPG-116-improve-loading-animation (pull request #93)

MAPG-116 don't show loading when no real link clicked
This commit is contained in:
Bence Pőcze 2020-06-09 22:41:25 +00:00
commit 2725754504
2 changed files with 2 additions and 2 deletions

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">

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';
}