13,774
edits
No edit summary |
No edit summary |
||
Line 95: | Line 95: | ||
} | } | ||
tabcontainers[tc].parentNode.insertBefore( toc, tabcontainers[tc] ); | tabcontainers[tc].parentNode.insertBefore( toc, tabcontainers[tc] ); | ||
if (location.hash) { | |||
window.dispatchEvent(new HashChangeEvent('hashchange')); | |||
} | |||
} | } | ||
} | } | ||
Line 116: | Line 119: | ||
} | } | ||
return false; | return false; | ||
} | |||
window.onhashchange = function() { | |||
tabId = $(location.hash).closest('.tabsection').attr('id'); | |||
if ( tabId ) { | |||
$('a[href="#' + tabId + '"]').click(); | |||
location.href = location.hash; | |||
} | |||
} | } | ||
$( tabSystem ); | $( tabSystem ); |