From 3988f3eb48bafb36b370eecc75a87e804f57c09d Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 6 Jun 2026 00:32:43 +0200 Subject: =?UTF-8?q?classe=20Router,=20flash=20errors=20r=C3=A9cup=C3=A9r?= =?UTF-8?q?=C3=A9es=20dans=20ViewDirector,=20exceptions=20bugg=C3=A9es,=20?= =?UTF-8?q?utilisation=20de=20Response=20=C3=A0=20certains=20endroits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/maintenance.js | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'public/js/maintenance.js') diff --git a/public/js/maintenance.js b/public/js/maintenance.js index f5840ef..2ed7f98 100644 --- a/public/js/maintenance.js +++ b/public/js/maintenance.js @@ -41,33 +41,3 @@ function cleanLogs(){ }); fetcher.send({}); } - -// notification de succès ou erreur après restauration -document.addEventListener('DOMContentLoaded', function(){ - // 1/ message généré avant la redirection - const params = new URLSearchParams(window.location.search); - - if(params.has('read_backups_dir')){ - toastNotify("Une erreur s'est produite:
" + params.get('read_backups_dir')); - } - if(params.has('database_restauration')){ - if(params.get('database_restauration') === 'successful'){ - toastNotify("La base de données a été restaurée avec succès !!"); - } - else{ - toastNotify("Une erreur s'est produite:
" + params.get('database_restauration')); - } - } - if(params.has('get_last_dump')){ - toastNotify(params.get('get_last_dump')); - } - if(params.has('get_all_media')){ - toastNotify(params.get('get_all_media')); - } - - - // 2/ message généré après la redirection, au moment de l'ouverture de la page - if(typeof window.error_message !== "undefined"){ - toastNotify(window.error_message); - } -}); -- cgit v1.2.3