mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-13 02:17:55 +01:00
fix some errors and old mootools syntax
This commit is contained in:
parent
8f3b55b650
commit
a862a8ec3d
@ -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);
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user