ElEditors, Interface administrators, Administrators
70,857
edits
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
if (tabber !== '') { | if (tabber !== '') { | ||
var matchedTab = $('.tabber-tab:contains("'+tabber+'")'); | var matchedTab = $('.tabber-tab:contains("'+tabber+'")'); | ||
if (matchedTab) { | if (matchedTab.length) { | ||
matchedTab.eq(0).click(); | matchedTab.eq(0).click(); | ||
matchedTab[0].scrollIntoView(); | matchedTab[0].scrollIntoView(); |