Skip to content

Commit

Permalink
Wait until tab content is shown before setting up grid system
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed May 28, 2024
1 parent bff3aa3 commit bb81fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/lectures_admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $(document).on("ready turbolinks:load", function () {
navigateToActiveNavTab();

// Reinitialize the masonry grid system when the lecture content is shown
$("#lecture-nav-content").on("click", () => {
$("#lecture-nav-content").on("shown.bs.tab", () => {
initMasonryGridSystem();
});
});
Expand Down

0 comments on commit bb81fb1

Please sign in to comment.