Anonymous

MediaWiki:Gadget-Tabs.js: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Line 17: Line 17:
    
    
   var tabber = window.location.hash.replace('#', '').replace(/_/g, ' ');
   var tabber = window.location.hash.replace('#', '').replace(/_/g, ' ');
   if (tabber != '') $('.tabber-tab:contains("'+tabber+'")').click();
   if (tabber != '') {
    $('.tabber-tab:contains("'+tabber+'")').click();
    tabs[0].scrollIntoView();
  }
 
});
});
});
});