From 1dfbb9361fdfcef94c42582c59b309636c3c54de Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 28 Jul 2023 16:14:49 +0200 Subject: [PATCH] autre test avec le curseur en wait mais dans jquery --- core/module/install/view/update/update.css | 10 +--------- core/module/install/view/update/update.js.php | 5 +++++ core/module/install/view/update/update.php | 12 ++++++------ 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/core/module/install/view/update/update.css b/core/module/install/view/update/update.css index 58a26dab..ec846297 100755 --- a/core/module/install/view/update/update.css +++ b/core/module/install/view/update/update.css @@ -15,12 +15,4 @@ /** NE PAS EFFACER * admin.css -*/ - -.cursorWait { - cursor: wait; -} - -.cursorDefault { - cursor: default; -} \ No newline at end of file +*/ \ No newline at end of file diff --git a/core/module/install/view/update/update.js.php b/core/module/install/view/update/update.js.php index d1d8aa5d..eb8f4b56 100644 --- a/core/module/install/view/update/update.js.php +++ b/core/module/install/view/update/update.js.php @@ -1,6 +1,9 @@ function step(i, data) { var errors = ["", "", "", ""]; $(".installUpdateProgressText").hide(), $(".installUpdateProgressText[data-id=" + i + "]").show(); + + $("body").css("cursor", "wait"); + $.ajax({ type: "POST", url: "?install/steps", @@ -17,6 +20,7 @@ function step(i, data) { setTimeout((function () { if (4 === i) { $("#installUpdateSuccess").show(); + $("body").css("cursor", "default"); $("#installUpdateEnd").removeClass("disabled"); $("#installUpdateProgress").hide(); } else { @@ -32,6 +36,7 @@ function step(i, data) { } function showError(step, message, errors) { + $("body").css("cursor", "default"); $("#installUpdateErrorStep").text(errors[step] + " (étape n°" + step + ")"); $("#installUpdateError").show(); $("#installUpdateEnd").removeClass("disabled"); diff --git a/core/module/install/view/update/update.php b/core/module/install/view/update/update.php index d677a7ca..728f2bd8 100644 --- a/core/module/install/view/update/update.php +++ b/core/module/install/view/update/update.php @@ -14,27 +14,27 @@
true]); ?> - + - + - + - +
-
+
'; ?> .
-
+