mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +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.',
|
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',
|
COPY_AND_PASTE_TOPICS: 'Copy and Paste Topics',
|
||||||
MULTIPLE_LINES: 'Add multiple text lines',
|
MULTIPLE_LINES: 'Add multiple text lines',
|
||||||
|
|
||||||
|
|
||||||
|
BACK_TO_MAP_LIST: 'Back to Maps List',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default EN;
|
export default EN;
|
||||||
|
@ -246,15 +246,12 @@ class Menu extends IMenu {
|
|||||||
|
|
||||||
Menu._registerTooltip('print', $msg('PRINT'));
|
Menu._registerTooltip('print', $msg('PRINT'));
|
||||||
|
|
||||||
this._addButton('zoomIn', false, false, () => {
|
$('#backToList').bind('click', (event) => {
|
||||||
designer.zoomIn();
|
event.stopPropagation();
|
||||||
|
window.location = '/c/maps/';
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
Menu._registerTooltip('zoomIn', $msg('ZOOM_IN'));
|
Menu._registerTooltip('backToList', $msg('BACK_TO_MAP_LIST'));
|
||||||
|
|
||||||
this._addButton('zoomOut', false, false, () => {
|
|
||||||
designer.zoomOut();
|
|
||||||
});
|
|
||||||
Menu._registerTooltip('zoomOut', $msg('ZOOM_OUT'));
|
|
||||||
|
|
||||||
const undoButton = this._addButton('undoEdition', false, false, () => {
|
const undoButton = this._addButton('undoEdition', false, false, () => {
|
||||||
designer.undo();
|
designer.undo();
|
||||||
|
@ -25,12 +25,11 @@ div#mapName >span {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#back {
|
div#backToList {
|
||||||
background: url(../images/back-icon.svg) no-repeat center center;
|
height: 24px;
|
||||||
height: 40px;
|
width: 24px;
|
||||||
width: 80px;
|
|
||||||
float: left;
|
float: left;
|
||||||
margin: 6px 0px;
|
margin: 13px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************************/
|
/******************************************************************************************/
|
||||||
|
@ -12,7 +12,9 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="header">
|
<div id="header">
|
||||||
<div id="toolbar">
|
<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="editTab" class="tabContent">
|
||||||
<div id="persist" class="buttonContainer">
|
<div id="persist" class="buttonContainer">
|
||||||
<div id="save" class="buttonOn">
|
<div id="save" class="buttonOn">
|
||||||
|
Loading…
Reference in New Issue
Block a user