]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/history.js
Changeset border turns blue on hover
[rails.git] / app / assets / javascripts / index / history.js
index cb1f6f8d576012680ee051dddc4a222194d98397..d18006dd6cf0877c928aae712e2fdbbfb88547d8 100644 (file)
@@ -38,12 +38,12 @@ OSM.History = function(map) {
   };
 
   function highlightChangeset(id) {
-    group.getLayer(id).setStyle({fillOpacity: 0.3});
+    group.getLayer(id).setStyle({fillOpacity: 0.3, color: "#0095AA"});
     $("#changeset_" + id).addClass("selected");
   }
 
   function unHighlightChangeset(id) {
-    group.getLayer(id).setStyle({fillOpacity: 0});
+    group.getLayer(id).setStyle({fillOpacity: 0, color: "#FF9500"});
     $("#changeset_" + id).removeClass("selected");
   }
 
@@ -62,7 +62,7 @@ OSM.History = function(map) {
       url: window.location.pathname,
       method: "GET",
       data: data,
-      success: function(html, status, xhr) {
+      success: function(html) {
         $('#sidebar_content .changesets').html(html);
         updateMap();
       }