From ffebecc0065a5d7df1a15d3f1543d70250bd79e2 Mon Sep 17 00:00:00 2001 From: Dasc3er Date: Fri, 27 Nov 2020 17:52:44 +0100 Subject: [PATCH] Correzioni su messaggi JS Dashboard --- modules/dashboard/edit.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/dashboard/edit.php b/modules/dashboard/edit.php index 1ae9b52da..b06d0b832 100755 --- a/modules/dashboard/edit.php +++ b/modules/dashboard/edit.php @@ -527,7 +527,7 @@ echo ' }, editable: globals.dashboard.write_permission, - eventDrop: function(event) {// info + eventDrop: function(event, delta, revertFunc ) {// info // let event = info.event; $.post(globals.dashboard.load_url, { @@ -539,8 +539,8 @@ echo ' }, function (data, response) { data = $.trim(data); if (response !== "success" || data !== "ok") { - alert(data); - info.revert(); + swal("'.tr('Errore').'", data, "error"); + revertFunc(); // info.revert(); } }); }, @@ -556,7 +556,7 @@ echo ' }, function (data, response) { data = $.trim(data); if (response !== "success" || data !== "ok") { - alert(data); + swal("'.tr('Errore').'", data, "error"); revertFunc(); // info.revert(); } }); @@ -604,7 +604,7 @@ echo ' url: globals.dashboard.load_url + "&op=interventi_periodo", type: "GET", error: function () { - alert(globals.dashboard.error); + swal("'.tr('Errore').'", globals.dashboard.error, "error"); } } });