mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
nodejs: reload the page if deleted line is the last one
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user