From 3f2f23d3c1e8538798328bd47ce96e50f005b68c Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 11 Nov 2012 17:23:15 -0300 Subject: [PATCH] Change event registration for unload. --- mindplot/src/main/javascript/widget/Menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindplot/src/main/javascript/widget/Menu.js b/mindplot/src/main/javascript/widget/Menu.js index 7094b235..16cebcde 100644 --- a/mindplot/src/main/javascript/widget/Menu.js +++ b/mindplot/src/main/javascript/widget/Menu.js @@ -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);