aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/css/foot.css2
-rw-r--r--public/css/maintenance.css8
-rw-r--r--public/js/maintenance.js18
3 files changed, 20 insertions, 8 deletions
diff --git a/public/css/foot.css b/public/css/foot.css
index ed65666..8ffb6d7 100644
--- a/public/css/foot.css
+++ b/public/css/foot.css
@@ -177,7 +177,7 @@ footer .data > div
177 position: fixed; 177 position: fixed;
178 z-index: 1; 178 z-index: 1;
179 left: 50%; 179 left: 50%;
180 bottom: 30px; 180 bottom: 40px;
181 transform: translateX(-50%); 181 transform: translateX(-50%);
182 /*opacity: 0;*/ 182 /*opacity: 0;*/
183 transition: opacity 0.5s, visibility 0.5s; 183 transition: opacity 0.5s, visibility 0.5s;
diff --git a/public/css/maintenance.css b/public/css/maintenance.css
index 9b6f525..4a0dbb0 100644
--- a/public/css/maintenance.css
+++ b/public/css/maintenance.css
@@ -27,4 +27,12 @@
27 border-radius: 4px; 27 border-radius: 4px;
28 background-color: white; 28 background-color: white;
29 border: lightgrey 2px outset; 29 border: lightgrey 2px outset;
30}
31
32@media screen and (max-width: 480px)
33{
34 .maintenance select
35 {
36 font-size: 86%;
37 }
30} \ No newline at end of file 38} \ No newline at end of file
diff --git a/public/js/maintenance.js b/public/js/maintenance.js
index 078c223..a742cf6 100644
--- a/public/js/maintenance.js
+++ b/public/js/maintenance.js
@@ -42,19 +42,14 @@ function cleanLogs(){
42 fetcher.send({}); 42 fetcher.send({});
43} 43}
44 44
45// notification après restauration 45// notification de succès ou erreur après restauration
46document.addEventListener('DOMContentLoaded', function(){ 46document.addEventListener('DOMContentLoaded', function(){
47 // 1/ message généré avant la redirection
47 const params = new URLSearchParams(window.location.search); 48 const params = new URLSearchParams(window.location.search);
48 // ça pourrait être bien de récupérer le message d'erreur de l'exception d'une autre manière (message dans la variable globale window? c'est faisable??)
49
50 if(typeof window.error_message !== "undefined"){
51 toastNotify(window.error_message);
52 }
53 49
54 if(params.has('read_backups_dir')){ 50 if(params.has('read_backups_dir')){
55 toastNotify("Une erreur s'est produite:<br>" + params.get('read_backups_dir')); 51 toastNotify("Une erreur s'est produite:<br>" + params.get('read_backups_dir'));
56 } 52 }
57
58 if(params.has('database_restauration')){ 53 if(params.has('database_restauration')){
59 if(params.get('database_restauration') === 'successful'){ 54 if(params.get('database_restauration') === 'successful'){
60 toastNotify("La base de données a été restaurée avec succès !!"); 55 toastNotify("La base de données a été restaurée avec succès !!");
@@ -63,4 +58,13 @@ document.addEventListener('DOMContentLoaded', function(){
63 toastNotify("Une erreur s'est produite:<br>" + params.get('database_restauration')); 58 toastNotify("Une erreur s'est produite:<br>" + params.get('database_restauration'));
64 } 59 }
65 } 60 }
61 if(params.has('get_all_media')){
62 toastNotify(params.get('get_all_media'));
63 }
64
65
66 // 2/ message généré après la redirection, au moment de l'ouverture de la page
67 if(typeof window.error_message !== "undefined"){
68 toastNotify(window.error_message);
69 }
66}); 70});