Commit cab13892 authored by jan.koester's avatar jan.koester
Browse files

ui bugfixes

parent 2d6966bb
Loading
Loading
Loading
Loading
+5 −2
Changes for data/template/default/editor.html: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -1802,8 +1802,10 @@
                    setTplStatus('Template loaded!', false);
                    currentTemplateId = templateId;
                    updateCurrentTemplateDisplay(currentTemplateName, revision || 'latest');
                    // Refresh the document tree
                    initDocumentTree();
                    // Refresh the document tree and preview
                    await initDocumentTree();
                    reloadIframe();
                    handleElementSelection('WebEditor');
                } else {
                    setTplStatus(resp.message || 'Load failed.', true);
                }
@@ -2011,6 +2013,7 @@
            initPluginToolbar();
            initDocumentTree(); // Load the document structure tree
            handleElementSelection(currentSelectedElementId); // Initial selection state
            loadTemplateList(); // Auto-load templates on startup
        };
    </script>
</body>