Skip to content

Commit

Permalink
Nav-tabs event scoping (#874)
Browse files Browse the repository at this point in the history
Scope the tab showing behavior to bulkrax views, so that it does not impact unrelated pages
  • Loading branch information
bbpennel authored Oct 19, 2023
1 parent 3e86ccd commit bc82a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/bulkrax/navtabs.js.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% unless defined?(::Hyku) %>
// enables the tabs in the importers/exporters pages.
$(document).ready(function() {
$('.nav-tabs a').click(function (e) {
$('.bulkrax-nav-tab-top-margin.nav-tabs a').click(function (e) {
e.preventDefault();
$(this).tab('show');
});
Expand Down

0 comments on commit bc82a6f

Please sign in to comment.