diff options
| author | Jacob Thornton <[email protected]> | 2012-03-12 13:37:44 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-03-12 13:37:44 -0700 |
| commit | 56fe54df4385bfa186b82da443b14920ea2b16ee (patch) | |
| tree | 457497389340a956c02af970ad3dea85fd07f305 /js | |
| parent | cd89c34d99f839be73e9179385d4da29de026431 (diff) | |
| download | bootstrap-56fe54df4385bfa186b82da443b14920ea2b16ee.tar.xz bootstrap-56fe54df4385bfa186b82da443b14920ea2b16ee.zip | |
remove collapse class on open so that dropdowns are viewable
Diffstat (limited to 'js')
| -rw-r--r-- | js/bootstrap-collapse.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/bootstrap-collapse.js b/js/bootstrap-collapse.js index d195efc72..2139d6703 100644 --- a/js/bootstrap-collapse.js +++ b/js/bootstrap-collapse.js @@ -74,7 +74,9 @@ [dimension](size || 'auto') [0].offsetWidth - this.$element.addClass('collapse') + this.$element[size ? 'addClass' : 'removeClass']('collapse') + + return this } , transition: function ( method, startEvent, completeEvent ) { |
