1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 12:59:05 +02:00

add show/shown hide/hidden events to dropdown + update dropdown links for testing + catch a few missed namespace things

This commit is contained in:
Jacob Thornton
2013-05-24 23:15:04 -07:00
parent f820de4b32
commit f3e45c3778
8 changed files with 138 additions and 51 deletions

View File

@@ -185,7 +185,7 @@
// CAROUSEL DATA-API
// =================
$(document).on('click.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
$(document).on('click.bs.carousel.data-api', '[data-slide], [data-slide-to]', function (e) {
var $this = $(this), href
var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
var options = $.extend({}, $target.data(), $this.data())