Skip to content

Commit

Permalink
docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
okendoken committed Aug 23, 2014
1 parent a5a0db7 commit b1ce914
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ To attach event handler just call:
alert('accordion is shown now!');
});

Attach an event handler when **either** tab or collapse is opened:
------------

$(document).on("shown.bs.collapse shown.bs.tab", ".panel-collapse, a[data-toggle='tab']", function (e) {
alert('either tab or collapse opened - check arguments to distinguish ' + e);
});

Contributors
------------

Expand Down

0 comments on commit b1ce914

Please sign in to comment.