diff --git a/app/assets/javascripts/lectures_admin.js b/app/assets/javascripts/lectures_admin.js index 274a6e781..6ec62b780 100644 --- a/app/assets/javascripts/lectures_admin.js +++ b/app/assets/javascripts/lectures_admin.js @@ -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(); }); });