diff --git a/templates/base.html b/templates/base.html index 6d0d076..ffa8428 100644 --- a/templates/base.html +++ b/templates/base.html @@ -285,18 +285,9 @@ } } - function blockPageRefresh() { - window.addEventListener('beforeunload', function (e) { - e.preventDefault(); - e.returnValue = ''; - }); - } - - function showLoadingModal() { $('#loadingModal').modal('show'); togglePageClicks(false); - blockPageRefresh(); } function hideLoadingModal() { @@ -304,10 +295,6 @@ togglePageClicks(true); } - $('#loadingModal').on('hidden.bs.modal', function () { - window.removeEventListener('beforeunload', function () {}); - }); - function showAlertModal(title, message) { var modalTitle = document.getElementById('alertModalLabel'); var modalMessage = document.getElementById('alertModalMessage');