Add BS modals when confirmation needed

This commit is contained in:
William Bouzourène 2025-01-23 14:54:31 +01:00
parent 73e24514b1
commit 476b8c396e
7 changed files with 400 additions and 171 deletions

View file

@ -1,11 +1,3 @@
$(document).ready(function() {
$(".areyousure").on("click", function(e) {
if(!confirm("Êtes-vous sûr ?")) {
e.preventDefault();
}
});
});
$(document).ready(function() {
$(".toggle-dark-mode").on("click", function() {
var currentState = $("html").attr("data-bs-theme");