aboutsummaryrefslogtreecommitdiff
path: root/public/js/maintenance.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/maintenance.js')
-rw-r--r--public/js/maintenance.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/public/js/maintenance.js b/public/js/maintenance.js
index 2ed7f98..0c28183 100644
--- a/public/js/maintenance.js
+++ b/public/js/maintenance.js
@@ -41,3 +41,18 @@ function cleanLogs(){
41 }); 41 });
42 fetcher.send({}); 42 fetcher.send({});
43} 43}
44
45function preventClickSpam(button){
46 if(button.disabled){
47 return;
48 }
49
50 button.disabled = true;
51 button.style.color = 'grey';
52 toastNotify('Veuillez patienter...', 1000);
53
54 setTimeout(() => {
55 button.disabled = false;
56 button.style.color = '#ff1d04';
57 }, 1000);
58} \ No newline at end of file