MAPG-90 disable unload prevention and unify onbeforeunload script (loading animation)
This commit is contained in:
1 parent
098f34ca0a
commit
fe095cf435
4 files changed
+6
-18
No files matched your search
@@ -44,11 +44,4 @@
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('loading').style.visibility = 'hidden';
|
||||
|
||||
window.addEventListener('beforeunload', function (e) {
|
||||
document.getElementById('loading').style.visibility = 'visible';
|
||||
});
|
||||
</script>
|
||||
<?php require 'templates/main_footer.php'; ?>
|
||||
@@ -1,2 +1,7 @@
|
||||
<script>
|
||||
window.addEventListener('beforeunload', function (e) {
|
||||
document.getElementById('loading').style.visibility = 'visible';
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user