better beforeunload

This commit is contained in:
Ondrej Zara
2014-12-04 09:51:32 +01:00
parent 3436148ff2
commit fdbc440630
+3 -1
View File
@@ -2753,4 +2753,6 @@ SQL.Designer.prototype.getFKTypeFor = function(typeIndex) {
return this.fkTypeFor[typeIndex];
}
OZ.Event.add(window, "beforeunload", function(e) { OZ.Event.prevent(e); return ""; });
window.onbeforeunload = function(e) {
return ""; /* some browsers will show this text, some won't. */
}