fix some errors and old mootools syntax

This commit is contained in:
Ezequiel Bergamaschi 2014-06-16 01:35:57 -03:00
parent 144424ffe5
commit 6fc214551d
2 changed files with 4 additions and 3 deletions

View File

@ -71,7 +71,7 @@ mindplot.widget.IMenu = new Class({
// Display save message .. // Display save message ..
if (saveHistory) { if (saveHistory) {
$notify($msg('SAVING')); $notify($msg('SAVING'));
saveElem.setStyle('cursor', 'wait'); saveElem.css('cursor', 'wait');
} }
// Call persistence manager for saving ... // Call persistence manager for saving ...
@ -80,7 +80,7 @@ mindplot.widget.IMenu = new Class({
persistenceManager.save(mindmap, mindmapProp, saveHistory, { persistenceManager.save(mindmap, mindmapProp, saveHistory, {
onSuccess:function () { onSuccess:function () {
if (saveHistory) { if (saveHistory) {
saveElem.setStyle('cursor', 'pointer'); saveElem.css('cursor', 'pointer');
$notify($msg('SAVE_COMPLETE')); $notify($msg('SAVE_COMPLETE'));
} }
menu.setRequireChange(false); menu.setRequireChange(false);
@ -88,7 +88,7 @@ mindplot.widget.IMenu = new Class({
onError:function (error) { onError:function (error) {
if (saveHistory) { if (saveHistory) {
saveElem.setStyle('cursor', 'pointer'); saveElem.css('cursor', 'pointer');
if (error.severity != "FATAL") { if (error.severity != "FATAL") {
$notify(error.message); $notify(error.message);

View File

@ -502,6 +502,7 @@ mindplot.widget.Menu = new Class({
}, },
_addButton: function (buttonId, topic, rel, fn) { _addButton: function (buttonId, topic, rel, fn) {
var me = this;
// Register Events ... // Register Events ...
var result = null; var result = null;
if ($('#'+buttonId)) { if ($('#'+buttonId)) {