mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-11 01:33:24 +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 ..
|
// 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);
|
||||||
|
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user