From 1224883b4f3294f68cd8acc0612133298aa3cc26 Mon Sep 17 00:00:00 2001 From: "ondrej.zara" Date: Thu, 13 May 2010 09:05:47 +0000 Subject: [PATCH] #92 beforeunload prevention --HG-- extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%40106 --- js/wwwsqldesigner.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/wwwsqldesigner.js b/js/wwwsqldesigner.js index 6ab249f..a70bd20 100644 --- a/js/wwwsqldesigner.js +++ b/js/wwwsqldesigner.js @@ -348,7 +348,7 @@ SQL.Row.prototype.destroy = function() { SQL.Row.prototype.toXML = function() { var xml = ""; - var t = this.getTitle().replace(/"/g,"""); // "" + var t = this.getTitle().replace(/"/g,"""); // " var nn = (this.data.nll ? "1" : "0"); var ai = (this.data.ai ? "1" : "0"); xml += '\n'; @@ -2528,3 +2528,5 @@ SQL.Designer.prototype.getFKTypeFor = function(typeIndex) { } return this.fkTypeFor[typeIndex]; } + +OZ.Event.add(window, "beforeunload", OZ.Event.prevent);