Skip to content

Commit

Permalink
Re-enables nav-tabs for hydra apps (#836)
Browse files Browse the repository at this point in the history
updates bootstrap, includes jquery, re-enables nav tab functionality for hydra
  • Loading branch information
summer-cook authored Jul 17, 2023
1 parent 9330baa commit 32dace9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gemspec
# your gem to rubygems.org.

gem 'blacklight', '~> 6.25.0'
gem 'bootstrap-sass', '~> 3.0'
gem 'bootstrap-sass', '~> 3.4.1'
gem 'coderay'
gem 'factory_bot_rails'
gem 'hyrax', '>= 2.3'
Expand Down
4 changes: 3 additions & 1 deletion app/assets/javascripts/bulkrax/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//

//= require jquery
//= require jquery_ujs
//= require_tree .
//= require bootstrap
7 changes: 7 additions & 0 deletions app/assets/javascripts/bulkrax/navtabs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// enables the tabs in the importers/exporters pages.
$(document).ready(function() {
$('.nav-tabs a').click(function (e) {
e.preventDefault();
$(this).tab('show');
});
});

0 comments on commit 32dace9

Please sign in to comment.