From bc82a6f6b46a5f7292911f3795efcd785fdded61 Mon Sep 17 00:00:00 2001 From: Ben Pennell Date: Thu, 19 Oct 2023 16:37:01 -0400 Subject: [PATCH] Nav-tabs event scoping (#874) Scope the tab showing behavior to bulkrax views, so that it does not impact unrelated pages --- app/assets/javascripts/bulkrax/navtabs.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/bulkrax/navtabs.js.erb b/app/assets/javascripts/bulkrax/navtabs.js.erb index 76c8725df..fed8d52d2 100644 --- a/app/assets/javascripts/bulkrax/navtabs.js.erb +++ b/app/assets/javascripts/bulkrax/navtabs.js.erb @@ -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'); });