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

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');
}