Temporal commit.

This commit is contained in:
Paulo Gustavo Veiga
2012-10-05 20:05:33 -03:00
committed by Paulo Gustavo Veiga
parent af8d833356
commit 2d58e9a0f5
6 changed files with 100 additions and 66 deletions

View File

@@ -72,8 +72,6 @@ mindplot.widget.IMenu = new Class({
if (saveHistory) {
$notify($msg('SAVING'));
saveElem.setStyle('cursor', 'wait');
} else {
console.log("Saving without history ...");
}
// Call persistence manager for saving ...
@@ -87,14 +85,16 @@ mindplot.widget.IMenu = new Class({
}
menu.setRequireChange(false);
},
onError:function (error) {
if (saveHistory) {
saveElem.setStyle('cursor', 'pointer');
var msg = error ? error.globalErrors : null;
if (!msg) {
msg = $msg('SAVE_COULD_NOT_BE_COMPLETED');
if (error.severity == "INFO") {
$notify(error.message);
} else {
$notifyModal(error.message);
}
$notify(msg);
}
}
}, sync);