diff options
| author | Mark Otto <[email protected]> | 2014-10-25 18:29:15 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-10-25 18:29:15 -0700 |
| commit | 9bf9aab132698e34bc1eb5661563307fc4e86d02 (patch) | |
| tree | 6c4f1f57868562b5e064baad5a5518fea37b848a /docs/dist/js/bootstrap.js | |
| parent | 75620dadcc3e6f6372f8e53a8f91e31746c87c25 (diff) | |
| download | bootstrap-9bf9aab132698e34bc1eb5661563307fc4e86d02.tar.xz bootstrap-9bf9aab132698e34bc1eb5661563307fc4e86d02.zip | |
grunt
Diffstat (limited to 'docs/dist/js/bootstrap.js')
| -rw-r--r-- | docs/dist/js/bootstrap.js | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/docs/dist/js/bootstrap.js b/docs/dist/js/bootstrap.js index 35f7081f5..abf43fb6f 100644 --- a/docs/dist/js/bootstrap.js +++ b/docs/dist/js/bootstrap.js @@ -1972,9 +1972,15 @@ if (typeof jQuery === 'undefined') { $active .removeClass('active') .find('> .dropdown-menu > .active') - .removeClass('active') + .removeClass('active') + .end() + .find('[data-toggle="tab"]') + .attr('aria-expanded', false) - element.addClass('active') + element + .addClass('active') + .find('[data-toggle="tab"]') + .attr('aria-expanded', true) if (transition) { element[0].offsetWidth // reflow for transition @@ -1984,7 +1990,12 @@ if (typeof jQuery === 'undefined') { } if (element.parent('.dropdown-menu')) { - element.closest('li.dropdown').addClass('active') + element + .closest('li.dropdown') + .addClass('active') + .end() + .find('[data-toggle="tab"]') + .attr('aria-expanded', true) } callback && callback() |
