Fix javascript error on map view.

This commit is contained in:
Paulo Gustavo Veiga 2012-08-15 21:45:24 -03:00
parent 5f441c2c20
commit 34bd8edd42

View File

@ -243,14 +243,18 @@ mindplot.widget.Menu = new Class({
var undoButton = this._addButton('undoEdition', false, false, function () {
designer.undo();
});
undoButton.disable();
if (undoButton) {
undoButton.disable();
}
this._registerTooltip('undoEdition', $msg('UNDO'), "meta+Z");
var redoButton = this._addButton('redoEdition', false, false, function () {
designer.redo();
});
redoButton.disable();
if (redoButton) {
redoButton.disable();
}
this._registerTooltip('redoEdition', $msg('REDO'), "meta+shift+Z");
if (redoButton && undoButton) {