Commit 7cbb1c04 authored by Jacob Thornton's avatar Jacob Thornton

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

parent e424b387
...@@ -200,4 +200,11 @@ ...@@ -200,4 +200,11 @@
e.preventDefault() e.preventDefault()
}) })
$(window).on('load', function () {
$('[data-ride="carousel"]').each(function () {
var $carousel = $(this)
$carousel.carousel($carousel.data())
})
})
}(window.jQuery); }(window.jQuery);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment