mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 22:27:55 +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) {
|
if (!readOnly) {
|
||||||
// To prevent the user from leaving the page with changes ...
|
// To prevent the user from leaving the page with changes ...
|
||||||
Element.NativeEvents.unload = 2;
|
Element.NativeEvents.unload = 1;
|
||||||
$(window).addEvent('unload', function () {
|
$(window).addEvent('unload', function () {
|
||||||
if (this.isSaveRequired()) {
|
if (this.isSaveRequired()) {
|
||||||
this.save(saveElem, designer, false, true);
|
this.save(saveElem, designer, false, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user