1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Fix minori

This commit is contained in:
Dasc3er
2020-09-08 16:51:43 +02:00
parent 1c2f0680d0
commit b48eaea47b
3 changed files with 6 additions and 3 deletions

View File

@@ -201,6 +201,7 @@ echo '
$.ajax({
url: globals.rootdir + "/actions.php",
type: "post",
dataType: "json",
data: {
op: "send",
id_module: "'.$id_module.'",
@@ -209,12 +210,13 @@ echo '
},
success: function(data) {
buttonRestore(button, restore);
data = JSON.parse(data);
if (data.code === "200") {
if (data.code === 200) {
swal("'.tr('Fattura inviata!').'", data.message, "success");
$(button).attr("disabled", true).addClass("disabled");
} else if (data.code === 301) {
swal("'.tr('Invio già effettuato').'", data.code + " - " + data.message, "error");
} else {
swal("'.tr('Invio fallito').'", data.code + " - " + data.message, "error");
}