Change event registration for unload.

This commit is contained in:
Paulo Gustavo Veiga 2012-11-11 17:23:15 -03:00
parent 4ac8a41a46
commit 3f2f23d3c1

View File

@ -325,7 +325,7 @@ mindplot.widget.Menu = new Class({
if (!readOnly) {
// To prevent the user from leaving the page with changes ...
Element.NativeEvents.unload = 2;
Element.NativeEvents.unload = 1;
$(window).addEvent('unload', function () {
if (this.isSaveRequired()) {
this.save(saveElem, designer, false, true);