From: Anton Khorev Date: Mon, 4 Dec 2023 02:10:41 +0000 (+0300) Subject: Remove unused .current from primary nav X-Git-Tag: live~915^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/e4cce5d53940297c27772ea996fbbd82ff164136?ds=sidebyside;hp=-c Remove unused .current from primary nav --- e4cce5d53940297c27772ea996fbbd82ff164136 diff --git a/app/assets/javascripts/index/export.js b/app/assets/javascripts/index/export.js index b9050d8a1..a953920f8 100644 --- a/app/assets/javascripts/index/export.js +++ b/app/assets/javascripts/index/export.js @@ -58,7 +58,6 @@ OSM.Export = function (map) { } page.pushstate = page.popstate = function (path) { - $("#export_tab").addClass("current"); OSM.loadSidebarContent(path, page.load); }; @@ -79,8 +78,6 @@ OSM.Export = function (map) { map .removeLayer(locationFilter) .off("moveend", update); - - $("#export_tab").removeClass("current"); }; return page; diff --git a/app/assets/javascripts/index/history.js b/app/assets/javascripts/index/history.js index e8d912685..c6ba0c2ed 100644 --- a/app/assets/javascripts/index/history.js +++ b/app/assets/javascripts/index/history.js @@ -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; diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index 55f37782d..e9ded0f75 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -9,7 +9,7 @@