From b387800234e8e1d019ba7488af3ae169c5ba5525 Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Fri, 18 Jan 2008 16:39:10 +0000 Subject: [PATCH] maybe this will work --- app/views/site/edit.rhtml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index c5d40d9a8..fa693051b 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -48,10 +48,11 @@ 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.)"; } } -- 2.43.2