Change event registration for unload.
parent
4ac8a41a46
commit
3f2f23d3c1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue