2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

Independently delegate data-api selectors

Fixes #14462.
Closes #14463 by merging it.
This commit is contained in:
Ben-Russell
2014-08-26 14:34:21 -07:00
committed by Heinrich Fenkart
parent 94b544c229
commit 68b771a057
3 changed files with 15 additions and 5 deletions
+6 -2
View File
@@ -141,9 +141,13 @@
// TAB DATA-API
// ============
$(document).on('click.bs.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
var clickHandler = function (e) {
e.preventDefault()
Plugin.call($(this), 'show')
})
}
$(document)
.on('click.bs.tab.data-api', '[data-toggle="tab"]', clickHandler)
.on('click.bs.tab.data-api', '[data-toggle="pill"]', clickHandler)
}(jQuery);