From 925f7da15ffd34373f020cf85bab4e13b12c24a7 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Fri, 1 Dec 2023 09:20:11 +0100 Subject: [PATCH 1/2] Fix avviso --- assets/src/js/functions/functions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/src/js/functions/functions.js b/assets/src/js/functions/functions.js index c4ef06d6e..94581d0f1 100755 --- a/assets/src/js/functions/functions.js +++ b/assets/src/js/functions/functions.js @@ -456,7 +456,8 @@ function alertPush() { $(this).css({ 'position': 'fixed', 'z-index': 3000, - 'right': '50%', + 'left': '50%', + 'transform': 'translate(-50%, -50%)', 'top': -100, }).delay(1000).animate({ 'top': tops, From 6aa15f0da32dd795c30821eb12e53ba02824bdce Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Fri, 1 Dec 2023 13:28:39 +0100 Subject: [PATCH 2/2] Modifica posizione avvisi in basso a destra --- assets/src/js/base/custom.js | 2 +- assets/src/js/functions/functions.js | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/assets/src/js/base/custom.js b/assets/src/js/base/custom.js index 7265ebdf5..1835a4d61 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-center", + "positionClass": "toast-bottom-right", //"preventDuplicates": true, "onclick": null, "showDuration": "300", diff --git a/assets/src/js/functions/functions.js b/assets/src/js/functions/functions.js index 94581d0f1..f951d4ba6 100755 --- a/assets/src/js/functions/functions.js +++ b/assets/src/js/functions/functions.js @@ -451,18 +451,17 @@ function alertPush() { $('.alert-success.push').each(function () { i++; - tops = 60 * i + 95; + bottoms = 60 * i; $(this).css({ 'position': 'fixed', - 'z-index': 3000, - 'left': '50%', - 'transform': 'translate(-50%, -50%)', - 'top': -100, + 'z-index': 300000, + 'right': '10px', + 'bottom': -100, }).delay(1000).animate({ - 'top': tops, + 'bottom': bottoms, }).delay(3000).animate({ - 'top': -100, + 'bottom': -100, }); }); } @@ -470,7 +469,7 @@ function alertPush() { // Nascondo la notifica se passo sopra col mouse $('.alert-success.push').on('mouseover', function () { $(this).stop().animate({ - 'top': -100, + 'bottom': -100, 'opacity': 0 }); });