- Fix auto save.

- Fix error trying to remove a node that contains a icons
- Fix auto-save leaving the page.
This commit is contained in:
Paulo Veiga
2011-11-29 00:38:11 -03:00
parent c598c1837e
commit 81f9ffa5e9
5 changed files with 192 additions and 183 deletions

View File

@@ -60,13 +60,6 @@ mindplot.Designer = new Class({
// Register keyboard events ...
mindplot.DesignerKeyboard.register(this);
// To prevent the user from leaving the page with changes ...
$(window).addEvent('beforeunload', function () {
if (this.needsSave()) {
this.save(null, false);
}
}.bind(this));
},
_registerMouseEvents : function() {