var winie=false; if (document.all && window.print) { winie=true; }
window.onbeforeunload=function() {
- if (!changesaved && !winie) {
- return "<%= t 'site.edit.potlatch_unsaved_changes' %>";
- }
+ if (!changesaved) {
+ return "<%= t 'site.edit.potlatch_unsaved_changes' %>";
+ }
}
function markChanged(a) { changesaved=a; }
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); }