mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
Change event registration for unload.
This commit is contained in:
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
Block a user