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 ..
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);

View File

@ -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)) {