X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/972363baf6688f82ba3b7aa8d54a4747b5f290a2..91bc3c92441bb2f85510b40741b30ee89dcf97f1:/app/views/site/edit.rhtml diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index 8c8ea9df5..d7c47101a 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -61,6 +61,7 @@ zoom='14' if zoom.nil? var fo = new SWFObject("/potlatch/potlatch.swf?d="+Math.round(Math.random()*1000), "potlatch", "100%", "100%", "6", "#FFFFFF"); // 700,600 for fixed size, 100%,100% for resizable var changesaved=true; + var winie=false; if (document.all && window.print) { winie=true; } window.onbeforeunload=function() { if (!changesaved) { @@ -72,6 +73,7 @@ zoom='14' if zoom.nil? function doSWF(lat,lon,sc) { if (sc < 11) sc = 11; + fo.addVariable('winie',winie); fo.addVariable('scale',sc); fo.addVariable('token','<%= session[:token] %>'); if (lat) { fo.addVariable('lat',lat); }