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

Miglioramento JS per gestione input in form AJAX

This commit is contained in:
Dasc3er
2021-03-29 18:31:23 +02:00
parent d572da3314
commit 593c727dde
22 changed files with 412 additions and 355 deletions

View File

@@ -269,8 +269,8 @@ echo '
}
function generaFE(button) {
salvaForm(button, "#edit-form").then(function(valid) {
if (valid) {';
salvaForm("#edit-form", {}, button)
.then(function(valid) {';
if ($generata) {
echo '
@@ -294,13 +294,12 @@ echo '
$("#form-xml").submit();';
}
echo '
} else {
}).catch(function() {
swal({
type: "error",
title: "'.tr('Errore').'",
text: "'.tr('Alcuni campi obbligatori non sono stati compilati correttamente').'.",
});
}
});
});
};
</script>';