Loading js/Client/flashMessenger.js +10 −6 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ function removeIcon(message) { } function toast(message, severity) { function toast(message, severity, options = null) { const bgClasses = { info: 'bg-info', success: 'bg-success', Loading Loading @@ -111,11 +111,15 @@ function toast(message, severity) { toastContainer().appendChild(toast); // Création et affichage du toast avec bootstrap const options = { if(options == null) { options = { animation: true, delay: severity === 'warning' ? 15000 : 5000, autohide: severity !== 'error' }; } let bsToast = new bootstrap.Toast(toast, options); bsToast.show(); } Loading Loading
js/Client/flashMessenger.js +10 −6 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ function removeIcon(message) { } function toast(message, severity) { function toast(message, severity, options = null) { const bgClasses = { info: 'bg-info', success: 'bg-success', Loading Loading @@ -111,11 +111,15 @@ function toast(message, severity) { toastContainer().appendChild(toast); // Création et affichage du toast avec bootstrap const options = { if(options == null) { options = { animation: true, delay: severity === 'warning' ? 15000 : 5000, autohide: severity !== 'error' }; } let bsToast = new bootstrap.Toast(toast, options); bsToast.show(); } Loading