]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/edit.html.erb
Add title="" to "Where am I?" in the search box
[rails.git] / app / views / site / edit.html.erb
index 948b1fad5122b1a3adc6394537ef995f79cee49f..b29c0f200e84032f4b0464f98a29a1a436f00c9f 100644 (file)
@@ -65,7 +65,7 @@ zoom='14' if zoom.nil?
   
   window.onbeforeunload=function() {
     if (!changesaved) {
   
   window.onbeforeunload=function() {
     if (!changesaved) {
-      return "<%= t 'site.edit.potlatch_unsaved_changes' %>";
+      return '<%= escape_javascript(t('site.edit.potlatch_unsaved_changes')) %>';
     }
   }
 
     }
   }