X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/34a8d0820969019d796f4bd103077fb2c785badc..380027ffe0ca1b741148d8f66c6fcb4c450ce588:/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;