From: Tom Hughes Date: Wed, 3 Jun 2009 09:17:29 +0000 (+0000) Subject: Issue unsaved changes alerts on IE. X-Git-Tag: live~7769 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/4a93c5de4b6a35d47afe20ad61724289b3fd02ac?hp=f0f111aced146d78b4c31a6175c0150bc6497c50 Issue unsaved changes alerts on IE. --- diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index 49e4e94f0..ccec7a022 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -64,9 +64,9 @@ 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; }