From 7c956dd919512bb2fad71a8fa98ce3a771bda59b Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 9 Aug 2020 18:11:49 +0200 Subject: [PATCH] Soumission unique --- core/module/config/view/backup/backup.js.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/module/config/view/backup/backup.js.php b/core/module/config/view/backup/backup.js.php index 5a3d7dac..cf101faf 100755 --- a/core/module/config/view/backup/backup.js.php +++ b/core/module/config/view/backup/backup.js.php @@ -12,6 +12,7 @@ $( document).ready(function() { $("#configBackupForm").submit( function(e){ + $("#configBackupSubmit").addClass("disabled").prop("disabled", true); e.preventDefault(); $("body").addClass("loading"); var url = "getUrl(0); ?>/backup"; @@ -26,6 +27,9 @@ $( document).ready(function() { error: function(data){ $("body").removeClass("loading"); core.alert("Une erreur s'est produite, la sauvegarde n'a pas été générée !"); + }, + complete: function(){ + $("#configBackupSubmit").removeClass("disabled").prop("disabled", false); } }); });