diff options
| author | Jacob Thornton <[email protected]> | 2011-09-09 00:00:03 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-09-09 00:00:03 -0700 |
| commit | b086d9425345844df597a6ae6b450dde7f4fb762 (patch) | |
| tree | fa77d7f282a64b789b02c32b47026301fba60821 /docs/assets | |
| parent | 1a8fb2dbf76b19c899ff8ae73a87c3727c1113cf (diff) | |
| download | bootstrap-b086d9425345844df597a6ae6b450dde7f4fb762.tar.xz bootstrap-b086d9425345844df597a6ae6b450dde7f4fb762.zip | |
remove aria-control stuff
Diffstat (limited to 'docs/assets')
| -rw-r--r-- | docs/assets/js/bootstrap-tabs.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/assets/js/bootstrap-tabs.js b/docs/assets/js/bootstrap-tabs.js index 21386f4cf..029ccc65c 100644 --- a/docs/assets/js/bootstrap-tabs.js +++ b/docs/assets/js/bootstrap-tabs.js @@ -11,17 +11,17 @@ , $ul = $(e.liveFired) , $controlled - if (/^#/.test(href)) { + if (/^#\w+/.test(href)) { e.preventDefault() if ($this.hasClass('active')) { return } - $controlled = $('#' + $ul.attr('aria-controls')) + $href = $(href) activate($this.parent('li'), $ul) - activate($(href, $controlled), $controlled) + activate($href, $href.parent()) } } @@ -31,7 +31,7 @@ $.fn.tabs = $.fn.pills = function () { return this.each(function () { - $(this).delegate('.tabs > li > a, .pills > li > a', 'click', tab) + $(this).delegate('.tabs > li > a, .pills > li > a, .dropdown-menu > li > a', 'click', tab) }) } |
