diff options
| author | Heinrich Fenkart <[email protected]> | 2014-09-09 01:23:48 +0200 |
|---|---|---|
| committer | Heinrich Fenkart <[email protected]> | 2014-09-09 01:23:48 +0200 |
| commit | 9b9e2f5d139e0accd141d5b4b04bb332ed341e4f (patch) | |
| tree | e7918da05335dcd654dbb99eb5819812d7584945 /docs/dist/js/bootstrap.js | |
| parent | fb1ca10b99edc0f92eddd68b840f021da942afe9 (diff) | |
| download | bootstrap-9b9e2f5d139e0accd141d5b4b04bb332ed341e4f.tar.xz bootstrap-9b9e2f5d139e0accd141d5b4b04bb332ed341e4f.zip | |
grunt and missing new line
Diffstat (limited to 'docs/dist/js/bootstrap.js')
| -rw-r--r-- | docs/dist/js/bootstrap.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/dist/js/bootstrap.js b/docs/dist/js/bootstrap.js index d9518ad5f..64dffbaa9 100644 --- a/docs/dist/js/bootstrap.js +++ b/docs/dist/js/bootstrap.js @@ -567,6 +567,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re this.$element .removeClass('collapse') .addClass('collapsing')[dimension](0) + .attr('aria-expanded', true) this.transitioning = 1 @@ -602,6 +603,7 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re this.$element .addClass('collapsing') .removeClass('collapse in') + .attr('aria-expanded', false) this.transitioning = 1 @@ -672,8 +674,9 @@ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript re var $parent = parent && $(parent) if (!data || !data.transitioning) { - if ($parent) $parent.find('[data-toggle="collapse"][data-parent="' + parent + '"]').not($this).addClass('collapsed') - $this.toggleClass('collapsed', $target.hasClass('in')) + if ($parent) $parent.find('[data-toggle="collapse"][data-parent="' + parent + '"]').not($this).addClass('collapsed').attr('aria-expanded', false) + var isCollapsed = $target.hasClass('in') + $this.toggleClass('collapsed', isCollapsed).attr('aria-expanded', !isCollapsed) } Plugin.call($target, option) |
