]> git.openstreetmap.org Git - rails.git/commitdiff
maybe this will work
authorRichard Fairhurst <richard@systemed.net>
Fri, 18 Jan 2008 16:39:10 +0000 (16:39 +0000)
committerRichard Fairhurst <richard@systemed.net>
Fri, 18 Jan 2008 16:39:10 +0000 (16:39 +0000)
app/views/site/edit.rhtml

index c5d40d9a8ee987ae30c3605a4b4880ccf561b3f5..fa693051b677f10f7917dc3f4c79d2037ad727e9 100644 (file)
   var brokenContentSize = $("content").offsetWidth == 0;
   var fo = new SWFObject("/potlatch/potlatch.swf?d="+Math.round(Math.random()*1000), "potlatch", "700", "600", "6", "#FFFFFF");
   var changesaved = true;
-
+  var winie=false; if (document.all && window.print) { winie=true; }
+  
   window.onbeforeunload=function() {
-       if (!changesaved) {
-         return "You have unsaved changes. (To save in Potlatch, you should deselect the current way or point.)";
+       if (!changesaved && !winie) {
+           return "You have unsaved changes. (To save in Potlatch, you should deselect the current way or point.)";
        }
   }