Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Push clicked link object to custom event.

  • Loading branch information...
commit c3a7cb628318c500642b18dbca196780c377fb79 1 parent 6e6c33f
@nefarioustim nefarioustim authored Dirk Ginader committed
Showing with 4 additions and 3 deletions.
  1. +4 −3 js/jquery.tabs.js
View
7 js/jquery.tabs.js
@@ -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();
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.