maybe this will work
This commit is contained in:
parent
9a57f4a125
commit
b387800234
1 changed files with 4 additions and 3 deletions
|
@ -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.)";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue