Fix back button on toolbar

This commit is contained in:
Paulo Gustavo Veiga 2022-01-07 14:53:31 -08:00
parent e5b6caf327
commit 690843b7fd
4 changed files with 15 additions and 14 deletions

View File

@ -77,6 +77,9 @@ const EN = {
KEYBOARD_SHORTCUTS_MSG: 'Keyboard shortcuts can help you save time by allowing you to never take your hands off the keyboard to use the mouse.',
COPY_AND_PASTE_TOPICS: 'Copy and Paste Topics',
MULTIPLE_LINES: 'Add multiple text lines',
BACK_TO_MAP_LIST: 'Back to Maps List',
};
export default EN;

View File

@ -246,15 +246,12 @@ class Menu extends IMenu {
Menu._registerTooltip('print', $msg('PRINT'));
this._addButton('zoomIn', false, false, () => {
designer.zoomIn();
$('#backToList').bind('click', (event) => {
event.stopPropagation();
window.location = '/c/maps/';
return false;
});
Menu._registerTooltip('zoomIn', $msg('ZOOM_IN'));
this._addButton('zoomOut', false, false, () => {
designer.zoomOut();
});
Menu._registerTooltip('zoomOut', $msg('ZOOM_OUT'));
Menu._registerTooltip('backToList', $msg('BACK_TO_MAP_LIST'));
const undoButton = this._addButton('undoEdition', false, false, () => {
designer.undo();

View File

@ -25,12 +25,11 @@ div#mapName >span {
font-weight: bold;
}
div#back {
background: url(../images/back-icon.svg) no-repeat center center;
height: 40px;
width: 80px;
div#backToList {
height: 24px;
width: 24px;
float: left;
margin: 6px 0px;
margin: 13px 20px;
}
/******************************************************************************************/

View File

@ -12,7 +12,9 @@
<body>
<div id="header">
<div id="toolbar">
<a href="/c/maps/"><div id="back"></div></a>
<div id="backToList">
<img src="images/back-icon.svg" />
</div>
<div id="editTab" class="tabContent">
<div id="persist" class="buttonContainer">
<div id="save" class="buttonOn">