Skip to content

Commit

Permalink
#82 menu unwanted code removed and button changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AgriyaDev5 committed Mar 12, 2021
1 parent 9037eb0 commit fa85b94
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/editor/EditorStartup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -390,7 +391,7 @@ class EditorStartup {
return true;
});
}
});
}); */
// Unfocus text input when this.workarea is mousedowned.
let inp;
/**
Expand Down Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ <h3 id="layersLabel">Layers</h3>
</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">
Expand Down
4 changes: 2 additions & 2 deletions src/editor/svgedit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit fa85b94

Please sign in to comment.