Permalink
Browse files

Push clicked link object to custom event.

  • Loading branch information...
nefarioustim authored and Dirk Ginader committed Aug 31, 2010
1 parent 6e6c33f commit c3a7cb628318c500642b18dbca196780c377fb79
Showing with 4 additions and 3 deletions.
  1. +4 −3 js/jquery.tabs.js
View
@@ -221,16 +221,17 @@
showAccessibleTab: function(index,id){
debug('showAccessibleTab');
var o = this;
- if(id){
+ if(id) {
var el = $('#'+id);
- el.trigger("showTab.accessibleTabs");
var links = el.find('ul.'+o.options.tabsListClass+'>li>a');
+ el.trigger("showTab.accessibleTabs", links.eq(index));
links.eq(index).click();
- }else{
+ } else {
return this.each(function() {
var el = $(this);
el.trigger("showTab.accessibleTabs");
var links = el.find('ul.'+o.options.tabsListClass+'>li>a');
+ el.trigger("showTab.accessibleTabs", links.eq(index));
links.eq(index).click();
});
}

0 comments on commit c3a7cb6

Please sign in to comment.