forked from lix-project/hydra
Merge pull request #961 from DeterminateSystems/fix-959
lazy tabs: trigger the load event
This commit is contained in:
commit
bc8619af3f
|
@ -60,6 +60,7 @@ $(document).ready(function() {
|
||||||
|
|
||||||
/* Activates tab according to URL anchor. */
|
/* Activates tab according to URL anchor. */
|
||||||
if (window.location.hash) {
|
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');
|
$('.nav-tabs > .nav-item:not(.dropdown) a[href="' + window.location.hash + '"]').tab('show');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue