#82 menu unwanted code removed and button changes
This commit is contained in:
@@ -320,7 +320,8 @@ class EditorStartup {
|
|||||||
this.setPanning = (active) => {
|
this.setPanning = (active) => {
|
||||||
this.svgCanvas.spaceKey = keypan = active;
|
this.svgCanvas.spaceKey = keypan = active;
|
||||||
};
|
};
|
||||||
|
// TODO: main menu move to webcomponent. so no need now
|
||||||
|
/*
|
||||||
const button = $('#main_icon');
|
const button = $('#main_icon');
|
||||||
const overlay = $('#main_icon span');
|
const overlay = $('#main_icon span');
|
||||||
const list = $('#main_menu');
|
const list = $('#main_menu');
|
||||||
@@ -390,7 +391,7 @@ class EditorStartup {
|
|||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
}); */
|
||||||
// Unfocus text input when this.workarea is mousedowned.
|
// Unfocus text input when this.workarea is mousedowned.
|
||||||
let inp;
|
let inp;
|
||||||
/**
|
/**
|
||||||
@@ -644,7 +645,7 @@ class EditorStartup {
|
|||||||
document.getElementById('se-prompt-dialog').title = editorObj.uiStrings.notification.loadingImage;
|
document.getElementById('se-prompt-dialog').title = editorObj.uiStrings.notification.loadingImage;
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$('#main_menu').hide();
|
// $('#main_menu').hide();
|
||||||
const file = (e.type === 'drop') ? e.dataTransfer.files[0] : this.files[0];
|
const file = (e.type === 'drop') ? e.dataTransfer.files[0] : this.files[0];
|
||||||
if (!file) {
|
if (!file) {
|
||||||
document.getElementById('se-prompt-dialog').setAttribute('close', true);
|
document.getElementById('se-prompt-dialog').setAttribute('close', true);
|
||||||
|
|||||||
@@ -262,7 +262,8 @@
|
|||||||
</label>
|
</label>
|
||||||
</div> <!-- container_panel -->
|
</div> <!-- container_panel -->
|
||||||
<div id="use_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> <!-- use_panel -->
|
||||||
<div id="g_panel">
|
<div id="g_panel">
|
||||||
<se-button id="tool_ungroup" title="Ungroup Elements [G]" src="./images/ungroup.svg">
|
<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; }
|
if (this.configObj.preferences) { return; }
|
||||||
this.configObj.preferences = true;
|
this.configObj.preferences = true;
|
||||||
const $editDialog = document.getElementById('se-edit-prefs');
|
const $editDialog = document.getElementById('se-edit-prefs');
|
||||||
$('#main_menu').hide();
|
// $('#main_menu').hide();
|
||||||
// Update background color with current one
|
// Update background color with current one
|
||||||
const canvasBg = this.configObj.curPrefs.bkgd_color;
|
const canvasBg = this.configObj.curPrefs.bkgd_color;
|
||||||
const url = this.configObj.pref('bkgd_url');
|
const url = this.configObj.pref('bkgd_url');
|
||||||
@@ -1932,7 +1932,7 @@ class Editor extends EditorStartup {
|
|||||||
* and `false` after the user confirms.
|
* and `false` after the user confirms.
|
||||||
*/
|
*/
|
||||||
async openPrep () {
|
async openPrep () {
|
||||||
$('#main_menu').hide();
|
// $('#main_menu').hide();
|
||||||
if (this.svgCanvas.undoMgr.getUndoStackSize() === 0) {
|
if (this.svgCanvas.undoMgr.getUndoStackSize() === 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user