Fix aggiunta movimento prima nota da modal

This commit is contained in:
MatteoPistorello 2023-05-23 16:29:30 +02:00
parent 330434d472
commit b9009b944c
1 changed files with 6 additions and 2 deletions

View File

@ -221,12 +221,16 @@ function controllaConti() {
if (continuare) {
$("#add-submit").prop("disabled", false);
$("#modello-button").prop("disabled", false);
if (!$("#modals > div").get().length) {
$("#save, #save-close").removeAttr("disabled").removeClass("disabled");
}
} else {
$("#add-submit").prop("disabled", true);
$("#modello-button").prop("disabled", true);
if (!$("#modals > div").get().length) {
$("#save, #save-close").attr("disabled", "true").addClass("disabled");
}
}
return continuare;
}