#82 menu unwanted code removed and button changes
parent
9037eb01fa
commit
fa85b94e92
|
@ -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);
|
||||
|
|
|
@ -262,7 +262,8 @@
|
|||
</label>
|
||||
</div> <!-- container_panel -->
|
||||
<div id="use_panel">
|
||||
<div class="push_button" id="tool_unlink_use" title="Break link to reference element (make unique)"></div>
|
||||
<se-button id="tool_unlink_use" title="Break link to reference element (make unique)" src="./images/unlink_use.svg">
|
||||
</se-button>
|
||||
</div> <!-- use_panel -->
|
||||
<div id="g_panel">
|
||||
<se-button id="tool_ungroup" title="Ungroup Elements [G]" src="./images/ungroup.svg">
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue