From 6fc214551d79c5b5c965dfc462009d8c21ec014c Mon Sep 17 00:00:00 2001 From: Ezequiel Bergamaschi Date: Mon, 16 Jun 2014 01:35:57 -0300 Subject: [PATCH] fix some errors and old mootools syntax --- mindplot/src/main/javascript/widget/IMenu.js | 6 +++--- mindplot/src/main/javascript/widget/Menu.js | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mindplot/src/main/javascript/widget/IMenu.js b/mindplot/src/main/javascript/widget/IMenu.js index 685798db..b43447d5 100644 --- a/mindplot/src/main/javascript/widget/IMenu.js +++ b/mindplot/src/main/javascript/widget/IMenu.js @@ -71,7 +71,7 @@ mindplot.widget.IMenu = new Class({ // Display save message .. if (saveHistory) { $notify($msg('SAVING')); - saveElem.setStyle('cursor', 'wait'); + saveElem.css('cursor', 'wait'); } // Call persistence manager for saving ... @@ -80,7 +80,7 @@ mindplot.widget.IMenu = new Class({ persistenceManager.save(mindmap, mindmapProp, saveHistory, { onSuccess:function () { if (saveHistory) { - saveElem.setStyle('cursor', 'pointer'); + saveElem.css('cursor', 'pointer'); $notify($msg('SAVE_COMPLETE')); } menu.setRequireChange(false); @@ -88,7 +88,7 @@ mindplot.widget.IMenu = new Class({ onError:function (error) { if (saveHistory) { - saveElem.setStyle('cursor', 'pointer'); + saveElem.css('cursor', 'pointer'); if (error.severity != "FATAL") { $notify(error.message); diff --git a/mindplot/src/main/javascript/widget/Menu.js b/mindplot/src/main/javascript/widget/Menu.js index c6703e49..fba99e42 100644 --- a/mindplot/src/main/javascript/widget/Menu.js +++ b/mindplot/src/main/javascript/widget/Menu.js @@ -502,6 +502,7 @@ mindplot.widget.Menu = new Class({ }, _addButton: function (buttonId, topic, rel, fn) { + var me = this; // Register Events ... var result = null; if ($('#'+buttonId)) {