From 6f7563345ebdb36aaf799798a016b9fa75f15677 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Tue, 28 Nov 2023 16:06:26 +0100 Subject: [PATCH] Spostati gli avvisi Toast in posizione top-center --- assets/src/js/base/custom.js | 2 +- assets/src/js/functions/functions.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/assets/src/js/base/custom.js b/assets/src/js/base/custom.js index 875b7c783..7265ebdf5 100644 --- a/assets/src/js/base/custom.js +++ b/assets/src/js/base/custom.js @@ -39,7 +39,7 @@ $(document).ready(function () { "debug": false, "newestOnTop": false, "progressBar": true, - "positionClass": "toast-top-right", + "positionClass": "toast-top-center", //"preventDuplicates": true, "onclick": null, "showDuration": "300", diff --git a/assets/src/js/functions/functions.js b/assets/src/js/functions/functions.js index 542d49211..b1d50d23b 100755 --- a/assets/src/js/functions/functions.js +++ b/assets/src/js/functions/functions.js @@ -383,11 +383,6 @@ function renderMessages() { let info = messages.info ? messages.info : []; info.forEach(function (element) { if (element) toastr["success"](element); - Toast.fire({ - icon: "success", - title: element, - position: 'top', - }); }); let warning = messages.warning ? messages.warning : [];