From ef3f946bda1b11bad5af3a48b7afa1fc50c602fd Mon Sep 17 00:00:00 2001 From: ondras Date: Tue, 3 Jan 2012 13:51:59 +0100 Subject: [PATCH] onbeforeunload for chrome --- js/wwwsqldesigner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js index 296640a..9ce3156 100644 --- a/js/wwwsqldesigner.js +++ b/js/wwwsqldesigner.js @@ -2640,4 +2640,4 @@ SQL.Designer.prototype.getFKTypeFor = function(typeIndex) { return this.fkTypeFor[typeIndex]; } -OZ.Event.add(window, "beforeunload", OZ.Event.prevent); +OZ.Event.add(window, "beforeunload", function(e) { OZ.Event.prevent(e); return ""; });