From e4cce5d53940297c27772ea996fbbd82ff164136 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Mon, 4 Dec 2023 05:10:41 +0300 Subject: [PATCH] Remove unused .current from primary nav --- app/assets/javascripts/index/export.js | 3 --- app/assets/javascripts/index/history.js | 3 --- app/views/layouts/_header.html.erb | 6 +++--- 3 files changed, 3 insertions(+), 9 deletions(-) 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 @@