}
page.pushstate = page.popstate = function (path) {
- $("#export_tab").addClass("current");
OSM.loadSidebarContent(path, page.load);
};
map
.removeLayer(locationFilter)
.off("moveend", update);
-
- $("#export_tab").removeClass("current");
};
return page;
}
page.pushstate = page.popstate = function (path) {
- $("#history_tab").addClass("current");
OSM.loadSidebarContent(path, page.load);
};
page.unload = function () {
map.removeLayer(group);
map.off("moveend", update);
-
- $("#history_tab").removeClass("current");
};
return page;
<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",
<% 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'>