Remove unused .current from primary nav

This commit is contained in:
Anton Khorev 2023-12-04 05:10:41 +03:00
parent 88f0d73230
commit e4cce5d539
3 changed files with 3 additions and 9 deletions

View file

@ -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;

View file

@ -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;

View file

@ -9,7 +9,7 @@
<nav class='primary'>
<%= content_for :header %>
<div class="btn-group">
<div id="edit_tab" class="btn-group <%= current_page_class(edit_path) %>">
<div id="edit_tab" class="btn-group">
<%= link_to t("layouts.edit"),
edit_path,
:class => "btn btn-outline-primary geolink editlink",
@ -27,8 +27,8 @@
<% end %>
</ul>
</div>
<%= link_to t("layouts.history"), history_path, :class => "btn btn-outline-primary geolink flex-grow-1 current_page_class(history_path)", :id => "history_tab" %>
<%= link_to t("layouts.export"), export_path, :class => "btn btn-outline-primary geolink current_page_class(export_path)", :id => "export_tab" %>
<%= link_to t("layouts.history"), history_path, :class => "btn btn-outline-primary geolink flex-grow-1", :id => "history_tab" %>
<%= link_to t("layouts.export"), export_path, :class => "btn btn-outline-primary geolink", :id => "export_tab" %>
</div>
</nav>
<nav class='secondary'>