]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/history.js
Hide export button when export area is too large, closes #30
[rails.git] / app / assets / javascripts / index / history.js
index 70366efbe3e17271cc8a00cb349f86cebea6e175..d27a069439233748cefee2a2b580c100c4f5f5e7 100644 (file)
@@ -29,7 +29,7 @@ OSM.History = function(map) {
   };
 
   function highlightChangeset(id) {
-    group.getLayer(id).setStyle({fillOpacity: 0.5});
+    group.getLayer(id).setStyle({fillOpacity: 0.3});
     $("#changeset_" + id).addClass("selected");
   }
 
@@ -99,12 +99,12 @@ OSM.History = function(map) {
 
   page.pushstate = page.popstate = function(path) {
     $("#history_tab").addClass("current");
-    $("#sidebar").removeClass("minimized");
     map.invalidateSize();
     $("#sidebar_content").load(path, page.load);
   };
 
   page.load = function() {
+    $("#sidebar").removeClass("minimized");
     map
       .on("moveend", loadData)
       .addLayer(group);