refactor: clean ONLYOFFICE integration - remove workarounds, follow standard pattern

This commit is contained in:
root
2026-07-17 08:56:38 +00:00
parent 7883c46b15
commit a962f29f55
4 changed files with 92 additions and 324 deletions

View File

@@ -693,14 +693,4 @@ function formatDate(d) {
}
// Initial load
loadDashboard();
// Restore active page after an ONLYOFFICE editor close triggered a page reload
(function() {
var returnPage = sessionStorage.getItem('returnPage');
if (returnPage) {
sessionStorage.removeItem('returnPage');
var link = document.querySelector('[data-page="' + returnPage + '"]');
if (link) link.click();
}
})();
loadDashboard();