Spostati gli avvisi Toast in posizione top-center
This commit is contained in:
parent
7522a67263
commit
6f7563345e
|
@ -39,7 +39,7 @@ $(document).ready(function () {
|
||||||
"debug": false,
|
"debug": false,
|
||||||
"newestOnTop": false,
|
"newestOnTop": false,
|
||||||
"progressBar": true,
|
"progressBar": true,
|
||||||
"positionClass": "toast-top-right",
|
"positionClass": "toast-top-center",
|
||||||
//"preventDuplicates": true,
|
//"preventDuplicates": true,
|
||||||
"onclick": null,
|
"onclick": null,
|
||||||
"showDuration": "300",
|
"showDuration": "300",
|
||||||
|
|
|
@ -383,11 +383,6 @@ function renderMessages() {
|
||||||
let info = messages.info ? messages.info : [];
|
let info = messages.info ? messages.info : [];
|
||||||
info.forEach(function (element) {
|
info.forEach(function (element) {
|
||||||
if (element) toastr["success"](element);
|
if (element) toastr["success"](element);
|
||||||
Toast.fire({
|
|
||||||
icon: "success",
|
|
||||||
title: element,
|
|
||||||
position: 'top',
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
let warning = messages.warning ? messages.warning : [];
|
let warning = messages.warning ? messages.warning : [];
|
||||||
|
|
Loading…
Reference in New Issue