Anonymous

MediaWiki:Gadget-Tabs.js: Difference between revisions

From Elwiki
no edit summary
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+'")')
     tabs[0].scrollIntoView();
    matchedTab.eq(0).click();
     matchedTab[0].scrollIntoView();
   }
   }
    
    
});
});
});
});