diff options
| author | fat <[email protected]> | 2014-08-18 19:58:19 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2014-08-18 19:58:19 -0700 |
| commit | 9c2e54bfeca744ca3d2ab811b23d9a083502c53d (patch) | |
| tree | 604adc351b5ad1605f4cfead4e66c81e3c09ebf2 /js/collapse.js | |
| parent | ea0e1606dc8f6a351c850a3e51889872c0f07c31 (diff) | |
| download | bootstrap-9c2e54bfeca744ca3d2ab811b23d9a083502c53d.tar.xz bootstrap-9c2e54bfeca744ca3d2ab811b23d9a083502c53d.zip | |
fixes #14282 - Already Visible collapse gets closed when .collapse('show') is called
Diffstat (limited to 'js/collapse.js')
| -rw-r--r-- | js/collapse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/collapse.js b/js/collapse.js index a265344f4..db89804cb 100644 --- a/js/collapse.js +++ b/js/collapse.js @@ -124,7 +124,7 @@ var data = $this.data('bs.collapse') var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) - if (!data && options.toggle && option == 'show') option = !option + if (!data && options.toggle && option == 'show') options.toggle = false if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))) if (typeof option == 'string') data[option]() }) |
