]> git.openstreetmap.org Git - rails.git/commitdiff
Always update perma and shortlinks, keeping layers
authorMatt Amos <zerebubuth@gmail.com>
Fri, 25 Nov 2011 15:11:37 +0000 (15:11 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 25 Nov 2011 15:22:32 +0000 (15:22 +0000)
app/views/site/index.html.erb

index 71cafacbc2d7794dea2869706419513e16a05d1f..86eed75566eb2a55ab3d2c6d09c2a670d5b995a1 100644 (file)
@@ -160,8 +160,6 @@ end
 
         setMapCenter(centre, zoom);
       <% end %>
-
-      updateLocation();
     <% end %>
 
     <% if !layers.nil? and !layers.empty? %>
@@ -185,6 +183,7 @@ end
     map.events.register("moveend", map, updateLocation);
     map.events.register("changelayer", map, updateLocation);
 
+    updateLocation();
     handleResize();
   }