Fix aggiunta modelli prima nota
This commit is contained in:
parent
bffe51c49b
commit
29c89262f4
|
@ -164,15 +164,18 @@ echo '
|
|||
});
|
||||
|
||||
$(document).on("change", "select", function() {
|
||||
let row = $(this).parent().parent();
|
||||
let row = $(this).parent().parent().parent();
|
||||
|
||||
if (row.find("input[disabled]").length > 1) {
|
||||
row.find("input").prop("disabled", !$(this).val());
|
||||
}
|
||||
|
||||
// Trigger dell\'evento keyup() per la prima volta, per eseguire i dovuti controlli nel caso siano predisposte delle righe in prima nota
|
||||
$("input[id*=dare][value!=\'\'], input[id*=avere][value!=\'\']").keyup();
|
||||
});
|
||||
|
||||
$(document).on("keyup change", "input[id*=dare]", function() {
|
||||
let row = $(this).parent().parent();
|
||||
let row = $(this).parent().parent().parent();
|
||||
|
||||
if (!$(this).prop("disabled")) {
|
||||
row.find("input[id*=avere]").prop("disabled", $(this).val().toEnglish());
|
||||
|
@ -180,7 +183,7 @@ echo '
|
|||
});
|
||||
|
||||
$(document).on("keyup change", "input[id*=avere]", function() {
|
||||
let row = $(this).parent().parent();
|
||||
let row = $(this).parent().parent().parent();
|
||||
|
||||
if (!$(this).prop("disabled")) {
|
||||
row.find("input[id*=dare]").prop("disabled", $(this).val().toEnglish());
|
||||
|
|
Loading…
Reference in New Issue