add data-ride=carousel support for starting carousel on load

This commit is contained in:
Jacob Thornton 2013-05-25 00:16:52 -07:00
parent e424b3879c
commit 7cbb1c0452

View File

@ -200,4 +200,11 @@
e.preventDefault()
})
$(window).on('load', function () {
$('[data-ride="carousel"]').each(function () {
var $carousel = $(this)
$carousel.carousel($carousel.data())
})
})
}(window.jQuery);