mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Fix back button on toolbar
This commit is contained in:
parent
e5b6caf327
commit
690843b7fd
@ -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;
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/******************************************************************************************/
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user