]> git.openstreetmap.org Git - rails.git/commitdiff
Reinstate IE test and pass result to flash.
authorTom Hughes <tom@compton.nu>
Wed, 3 Jun 2009 09:33:41 +0000 (09:33 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 3 Jun 2009 09:33:41 +0000 (09:33 +0000)
app/views/site/edit.rhtml

index 8c8ea9df55cd9296bd79c1b2d69ec2662c60190b..d7c47101a6c707369a1e2eff5e777be8c638e9b0 100644 (file)
@@ -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); }