diff --git a/renderer/carbone-templates/433a0593-d3cf-414e-8763-ab5f87cbc75c.docx b/renderer/carbone-templates/433a0593-d3cf-414e-8763-ab5f87cbc75c.docx index 1d79365..4f6839e 100644 Binary files a/renderer/carbone-templates/433a0593-d3cf-414e-8763-ab5f87cbc75c.docx and b/renderer/carbone-templates/433a0593-d3cf-414e-8763-ab5f87cbc75c.docx differ diff --git a/renderer/carbone-templates/registry.json b/renderer/carbone-templates/registry.json index 5d48489..ab490d5 100644 --- a/renderer/carbone-templates/registry.json +++ b/renderer/carbone-templates/registry.json @@ -6,6 +6,6 @@ "originalName": "master_cv_template.docx", "path": "/root/workspace/cv-app/renderer/carbone-templates/433a0593-d3cf-414e-8763-ab5f87cbc75c.docx", "uploadedAt": "2026-07-16T09:03:29.601Z", - "updatedAt": "2026-07-16T11:52:26.701Z" + "updatedAt": "2026-07-16T12:03:58.509Z" } ] \ No newline at end of file diff --git a/static/app.js b/static/app.js index 2b2568c..68eb1d2 100644 --- a/static/app.js +++ b/static/app.js @@ -693,4 +693,14 @@ function formatDate(d) { } // Initial load -loadDashboard(); \ No newline at end of file +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(); + } +})(); \ No newline at end of file diff --git a/static/carbone.js b/static/carbone.js index f52fe7e..ed6405d 100644 --- a/static/carbone.js +++ b/static/carbone.js @@ -280,11 +280,12 @@ function closeOnlyofficeEditor() { onlyofficeEditorInstance = null; } closeModal(); - // Force a small delay then reload the template list so the - // user sees the updated list with the latest save timestamp + // Reload the page to clear ONLYOFFICE's in-memory state. + // Save the active page so the user returns to Templates automatically + sessionStorage.setItem('returnPage', 'templates'); setTimeout(() => { - loadOnlyofficeTemplates(); - }, 500); + location.reload(); + }, 300); } // Open ONLYOFFICE editor in a modal diff --git a/static/index.html b/static/index.html index 8a43737..296debb 100644 --- a/static/index.html +++ b/static/index.html @@ -139,7 +139,7 @@ - - + + \ No newline at end of file