diff options
| author | Carl Porth <[email protected]> | 2012-09-26 23:11:03 -0700 |
|---|---|---|
| committer | Carl Porth <[email protected]> | 2012-09-26 23:11:03 -0700 |
| commit | 474471b83140350de320f3ba940bd7dd8326b32e (patch) | |
| tree | fe11a67690e6e84ce8e6a057b780af37ab341d87 /js/bootstrap-collapse.js | |
| parent | 24e277b85abace0f77076b1cfa96e11b1d1dc891 (diff) | |
| download | bootstrap-474471b83140350de320f3ba940bd7dd8326b32e.tar.xz bootstrap-474471b83140350de320f3ba940bd7dd8326b32e.zip | |
bind data-api events to document instead of body to allow body replacement
Diffstat (limited to 'js/bootstrap-collapse.js')
| -rw-r--r-- | js/bootstrap-collapse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/bootstrap-collapse.js b/js/bootstrap-collapse.js index 734575800..781e27437 100644 --- a/js/bootstrap-collapse.js +++ b/js/bootstrap-collapse.js @@ -144,7 +144,7 @@ * ==================== */ $(function () { - $('body').on('click.collapse.data-api', '[data-toggle=collapse]', function (e) { + $(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) { var $this = $(this), href , target = $this.attr('data-target') || e.preventDefault() |
