]> git.openstreetmap.org Git - rails.git/commitdiff
Issue unsaved changes alerts on IE.
authorTom Hughes <tom@compton.nu>
Wed, 3 Jun 2009 09:17:29 +0000 (09:17 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 3 Jun 2009 09:17:29 +0000 (09:17 +0000)
app/views/site/edit.rhtml

index 49e4e94f09554d9390b1417b6e5ae54f851c004e..ccec7a02214cd9d8b97bc33c9c5a86716e343001 100644 (file)
@@ -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; }