Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
enlever anti actualiser
Browse files Browse the repository at this point in the history
  • Loading branch information
elouanjef committed Jan 31, 2024
1 parent 10f1625 commit 444536f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,29 +285,16 @@ <h5 class="modal-title" id="selectRoleModalLabel">Sélectionner le rôle</h5>
}
}

function blockPageRefresh() {
window.addEventListener('beforeunload', function (e) {
e.preventDefault();
e.returnValue = '';
});
}


function showLoadingModal() {
$('#loadingModal').modal('show');
togglePageClicks(false);
blockPageRefresh();
}

function hideLoadingModal() {
$('#loadingModal').modal('hide');
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');
Expand Down

0 comments on commit 444536f

Please sign in to comment.