2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

bind data-api events to document instead of body to allow body replacement

This commit is contained in:
Carl Porth
2012-09-26 23:11:03 -07:00
parent 24e277b85a
commit 474471b831
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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()