nodejs: reload the page if deleted line is the last one

This commit is contained in:
rivexe
2023-05-17 13:24:28 +03:00
parent f914afcc53
commit 44832008a8

View File

@ -309,6 +309,10 @@ if (typeof jQuery != "undefined") {
if (parentRow) {
parentRow.remove();
}
const remainingRows = jq('tr.tableRow');
if (remainingRows.length === 0) {
document.location.reload(true);
}
}
}
});