From df08ee787924de3fd6be073934331a16bf6f1073 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 16 Jul 2026 11:06:18 +0000 Subject: [PATCH] fix: hide modal header when no title for ONLYOFFICE editor --- static/app.js | 8 +++++--- static/carbone.js | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/static/app.js b/static/app.js index 86058df..ddc1657 100644 --- a/static/app.js +++ b/static/app.js @@ -656,12 +656,14 @@ document.getElementById('chat-input')?.addEventListener('keypress', e => { // ============================================================ function showModal(body, title, size = '') { const overlay = document.getElementById('modal-overlay'); - overlay.innerHTML = ` - ` : ''; + overlay.innerHTML = ` + `; diff --git a/static/carbone.js b/static/carbone.js index a09f6b8..7dee585 100644 --- a/static/carbone.js +++ b/static/carbone.js @@ -285,7 +285,7 @@ async function openOnlyofficeEditor(templateId, templateName) {

Changes are saved automatically. Click "Save" to force-save, or "Close Editor" to return to the template list.

`; - showModal(body, 'ONLYOFFICE Template Editor', 'large'); + showModal(body, '', 'large'); // Load ONLYOFFICE API script dynamically const scriptUrl = onlyofficeUrl + '/web-apps/apps/api/documents/api.js';