Merge pull request #961 from DeterminateSystems/fix-959

lazy tabs: trigger the load event
This commit is contained in:
Graham Christensen 2021-05-05 14:51:33 -04:00 committed by GitHub
commit bc8619af3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,6 +60,7 @@ $(document).ready(function() {
/* Activates tab according to URL anchor. */
if (window.location.hash) {
setTimeout(function () { $('.nav-tabs > .nav-item:not(.dropdown) a[href="' + window.location.hash + '"]').trigger('show.bs.tab'); }, 0);
$('.nav-tabs > .nav-item:not(.dropdown) a[href="' + window.location.hash + '"]').tab('show');
}