ElEditors, Interface administrators, Administrators
70,975
edits
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
var tabber = window.location.hash.replace('#', '').replace(/_/g, ' '); | var tabber = window.location.hash.replace('#', '').replace(/_/g, ' '); | ||
if (tabber != '') { | if (tabber != '') { | ||
$('.tabber-tab:contains("'+tabber+'")').click(); | var matchedTab = $('.tabber-tab:contains("'+tabber+'")') | ||
matchedTab.eq(0).click(); | |||
matchedTab[0].scrollIntoView(); | |||
} | } | ||
}); | }); | ||
}); | }); |