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:
commit
2725754504
@ -9,7 +9,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</h1>
|
</h1>
|
||||||
<p>
|
<p>
|
||||||
<span class="bold"><a href="#" id="mapName"><?= $mapName ?></a></span><!--
|
<span class="bold"><a href="javascript:;" id="mapName"><?= $mapName ?></a></span><!--
|
||||||
--><span><!--
|
--><span><!--
|
||||||
<?php /* Copyright (c) 2019 The Bootstrap Authors. License can be found in 'USED_SOFTWARE' in section 'Bootstrap Icons'. */ ?>
|
<?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">
|
--><svg class="inline" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
var anchors = document.getElementsByTagName('a');
|
var anchors = document.getElementsByTagName('a');
|
||||||
for (var i = 0; i < anchors.length; i++) {
|
for (var i = 0; i < anchors.length; i++) {
|
||||||
var a = anchors[i];
|
var a = anchors[i];
|
||||||
if (a.target !== '_blank') {
|
if (a.href !== 'javascript:;' && a.target !== '_blank') {
|
||||||
a.onclick = function () {
|
a.onclick = function () {
|
||||||
document.getElementById('loading').style.visibility = 'visible';
|
document.getElementById('loading').style.visibility = 'visible';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user