Skip to content

Commit

Permalink
Move bootstrap tooltip initialization to another file
Browse files Browse the repository at this point in the history
  • Loading branch information
Janell-Huyck committed Dec 1, 2023
1 parent 22802d4 commit ff06de1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
//= require jquery3
//= require popper
//= require bootstrap-sprockets

$(document).on('turbolinks:load', function() {
$('[data-toggle="tooltip"]').tooltip();
})
//= require bootstrap-tooltip-initialization

function addAuthor(type, count) {
var count = count || 1;
Expand Down
3 changes: 3 additions & 0 deletions app/assets/javascripts/bootstrap-tooltip-initialization.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$(document).on('turbolinks:load', function() {
$('[data-toggle="tooltip"]').tooltip();
})

0 comments on commit ff06de1

Please sign in to comment.