X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3a51160a5b1c06126597cfaff31503839919c136..ae7f3f2786c2106528b98be8215d47c93785b1c2:/app/views/site/edit.rhtml?ds=sidebyside diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index 49e4e94f0..d7c47101a 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -64,15 +64,16 @@ zoom='14' if zoom.nil? 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); }