Reinstate IE test and pass result to flash.

This commit is contained in:
Tom Hughes 2009-06-03 09:33:41 +00:00
parent 972363baf6
commit b7aa25947e

View 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"); 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 // 700,600 for fixed size, 100%,100% for resizable
var changesaved=true; var changesaved=true;
var winie=false; if (document.all && window.print) { winie=true; }
window.onbeforeunload=function() { window.onbeforeunload=function() {
if (!changesaved) { if (!changesaved) {
@ -72,6 +73,7 @@ zoom='14' if zoom.nil?
function doSWF(lat,lon,sc) { function doSWF(lat,lon,sc) {
if (sc < 11) sc = 11; if (sc < 11) sc = 11;
fo.addVariable('winie',winie);
fo.addVariable('scale',sc); fo.addVariable('scale',sc);
fo.addVariable('token','<%= session[:token] %>'); fo.addVariable('token','<%= session[:token] %>');
if (lat) { fo.addVariable('lat',lat); } if (lat) { fo.addVariable('lat',lat); }