]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/edit.html.erb
Revert the nofollow attributes - they aren't really needed if sites
[rails.git] / app / views / site / edit.html.erb
index 948b1fad5122b1a3adc6394537ef995f79cee49f..3565b046816d41658434471f34efdedfd113d7e9 100644 (file)
@@ -65,7 +65,7 @@ zoom='14' if zoom.nil?
   
   window.onbeforeunload=function() {
     if (!changesaved) {
-      return "<%= t 'site.edit.potlatch_unsaved_changes' %>";
+      return '<%= escape_javascript(t('site.edit.potlatch_unsaved_changes')) %>';
     }
   }
 
@@ -88,7 +88,7 @@ zoom='14' if zoom.nil?
   doSWF(<%= lat || 'null' %>,<%= lon || 'null' %>,<%= zoom %>);
 
   function setPosition(lat, lon, zoom) {
-    doSWF(lat, lon, zoom);
+    doSWF(lat, lon, zoom || 15);
   }
 
   function resizeContent() {