mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 15:54:55 +01:00
Fix javascript error on map view.
This commit is contained in:
parent
5f441c2c20
commit
34bd8edd42
@ -243,14 +243,18 @@ mindplot.widget.Menu = new Class({
|
|||||||
var undoButton = this._addButton('undoEdition', false, false, function () {
|
var undoButton = this._addButton('undoEdition', false, false, function () {
|
||||||
designer.undo();
|
designer.undo();
|
||||||
});
|
});
|
||||||
|
if (undoButton) {
|
||||||
undoButton.disable();
|
undoButton.disable();
|
||||||
|
}
|
||||||
this._registerTooltip('undoEdition', $msg('UNDO'), "meta+Z");
|
this._registerTooltip('undoEdition', $msg('UNDO'), "meta+Z");
|
||||||
|
|
||||||
|
|
||||||
var redoButton = this._addButton('redoEdition', false, false, function () {
|
var redoButton = this._addButton('redoEdition', false, false, function () {
|
||||||
designer.redo();
|
designer.redo();
|
||||||
});
|
});
|
||||||
|
if (redoButton) {
|
||||||
redoButton.disable();
|
redoButton.disable();
|
||||||
|
}
|
||||||
this._registerTooltip('redoEdition', $msg('REDO'), "meta+shift+Z");
|
this._registerTooltip('redoEdition', $msg('REDO'), "meta+shift+Z");
|
||||||
|
|
||||||
if (redoButton && undoButton) {
|
if (redoButton && undoButton) {
|
||||||
|
Loading…
Reference in New Issue
Block a user