X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/74081ab17619e73306c9393bfbacd6eb463ab292..a7ba87340d91a6eeef096783b04a9b0a963bfa99:/app/assets/javascripts/index/history.js diff --git a/app/assets/javascripts/index/history.js b/app/assets/javascripts/index/history.js index 02b48f6a0..c6ba0c2ed 100644 --- a/app/assets/javascripts/index/history.js +++ b/app/assets/javascripts/index/history.js @@ -20,7 +20,7 @@ OSM.History = function (map) { unHighlightChangeset(e.layer.id); }) .on("click", function (e) { - clickChangeset(e.layer.id, e); + clickChangeset(e.layer.id, e.originalEvent); }); group.getLayerId = function (layer) { @@ -146,7 +146,6 @@ OSM.History = function (map) { } page.pushstate = page.popstate = function (path) { - $("#history_tab").addClass("current"); OSM.loadSidebarContent(path, page.load); }; @@ -165,8 +164,6 @@ OSM.History = function (map) { page.unload = function () { map.removeLayer(group); map.off("moveend", update); - - $("#history_tab").removeClass("current"); }; return page;