Debug last commit

This commit is contained in:
Adrien RENARD 2024-02-03 15:53:22 +01:00
parent 7bbd2083bd
commit c97ca1f48d
1 changed files with 6 additions and 2 deletions

View File

@ -150,7 +150,7 @@ function modalViewClient_initTabAbsences() {
modalViewClient.find("div.tabAbsences table tbody").append(tr); modalViewClient.find("div.tabAbsences table tbody").append(tr);
nullChild = modalViewClient.find("div.tabAbsences table tbody tr.nullChild"); nullChild = modalViewClient.find("div.tabAbsences table tbody tr.nullChild");
if(nullChild.length>0) nullChild.remove(); if(nullChild.length>0) nullChild.addClass("hide");
modalViewClient_initAbsenceRow(tr); modalViewClient_initAbsenceRow(tr);
}); });
@ -239,7 +239,11 @@ function modalViewClient_initAbsenceRow(row) {
// CANCEL // CANCEL
if(row.hasClass("editable")) { if(row.hasClass("editable")) {
if(ref == 'new') row.remove(); if(ref == 'new') {
list = row.parent();
row.remove();
if(list.find("tr:not(.nullChild)").length==0) list.find("tr.nullChild").removeClass("hide");
}
else { else {
iptDebut.blur(); iptFin.blur(); iptRmq.blur(); iptDebut.blur(); iptFin.blur(); iptRmq.blur();