Potlatch 0.7

This commit is contained in:
Richard Fairhurst 2008-02-01 17:19:11 +00:00
parent 59e2349b5a
commit da76d64e93
4 changed files with 11 additions and 10 deletions

View file

@ -46,8 +46,9 @@
<%= javascript_include_tag 'swfobject.js' %>
<script type="text/javascript">
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 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() {
@ -63,7 +64,7 @@
fo.addVariable('scale',sc);
fo.addVariable('token','<%= session[:token] %>');
<% if params['gpx'] %>
fo.addVariable('gpx','<%= h(params['gpx']) + "/data" %>');
fo.addVariable('gpx','<%= h(params['gpx']) + "/data.xml" %>');
<% end %>
fo.write("map");
}