diff --git a/src/editor/EditorStartup.js b/src/editor/EditorStartup.js index 087d1688..6fede19b 100644 --- a/src/editor/EditorStartup.js +++ b/src/editor/EditorStartup.js @@ -320,7 +320,8 @@ class EditorStartup { this.setPanning = (active) => { this.svgCanvas.spaceKey = keypan = active; }; - + // TODO: main menu move to webcomponent. so no need now + /* const button = $('#main_icon'); const overlay = $('#main_icon span'); const list = $('#main_menu'); @@ -390,7 +391,7 @@ class EditorStartup { return true; }); } - }); + }); */ // Unfocus text input when this.workarea is mousedowned. let inp; /** @@ -644,7 +645,7 @@ class EditorStartup { document.getElementById('se-prompt-dialog').title = editorObj.uiStrings.notification.loadingImage; e.stopPropagation(); e.preventDefault(); - $('#main_menu').hide(); + // $('#main_menu').hide(); const file = (e.type === 'drop') ? e.dataTransfer.files[0] : this.files[0]; if (!file) { document.getElementById('se-prompt-dialog').setAttribute('close', true); diff --git a/src/editor/index.html b/src/editor/index.html index e7c956fc..20404bfa 100644 --- a/src/editor/index.html +++ b/src/editor/index.html @@ -262,7 +262,8 @@
- + +
diff --git a/src/editor/svgedit.js b/src/editor/svgedit.js index 2cca94cf..9c4bdc74 100644 --- a/src/editor/svgedit.js +++ b/src/editor/svgedit.js @@ -1746,7 +1746,7 @@ class Editor extends EditorStartup { if (this.configObj.preferences) { return; } this.configObj.preferences = true; const $editDialog = document.getElementById('se-edit-prefs'); - $('#main_menu').hide(); + // $('#main_menu').hide(); // Update background color with current one const canvasBg = this.configObj.curPrefs.bkgd_color; const url = this.configObj.pref('bkgd_url'); @@ -1932,7 +1932,7 @@ class Editor extends EditorStartup { * and `false` after the user confirms. */ async openPrep () { - $('#main_menu').hide(); + // $('#main_menu').hide(); if (this.svgCanvas.undoMgr.getUndoStackSize() === 0) { return true; }