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 c4ef06d6e..f951d4ba6 100755 --- a/assets/src/js/functions/functions.js +++ b/assets/src/js/functions/functions.js @@ -451,17 +451,17 @@ function alertPush() { $('.alert-success.push').each(function () { i++; - tops = 60 * i + 95; + bottoms = 60 * i; $(this).css({ 'position': 'fixed', - 'z-index': 3000, - 'right': '50%', - 'top': -100, + 'z-index': 300000, + 'right': '10px', + 'bottom': -100, }).delay(1000).animate({ - 'top': tops, + 'bottom': bottoms, }).delay(3000).animate({ - 'top': -100, + 'bottom': -100, }); }); } @@ -469,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 }); });