]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/history.js
Remove references to #view_tab
[rails.git] / app / assets / javascripts / index / history.js
index ed4e2b41734bce73248e74dbe6bf255ba54af0b7..d27a069439233748cefee2a2b580c100c4f5f5e7 100644 (file)
@@ -99,12 +99,12 @@ OSM.History = function(map) {
 
   page.pushstate = page.popstate = function(path) {
     $("#history_tab").addClass("current");
 
   page.pushstate = page.popstate = function(path) {
     $("#history_tab").addClass("current");
-    $("#sidebar").removeClass("minimized");
     map.invalidateSize();
     $("#sidebar_content").load(path, page.load);
   };
 
   page.load = function() {
     map.invalidateSize();
     $("#sidebar_content").load(path, page.load);
   };
 
   page.load = function() {
+    $("#sidebar").removeClass("minimized");
     map
       .on("moveend", loadData)
       .addLayer(group);
     map
       .on("moveend", loadData)
       .addLayer(group);