aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-01-25 11:49:00 -0800
committerJacob Thornton <[email protected]>2012-01-25 11:49:00 -0800
commit319b65e64b6882ad2184f398f1763543cfa48a16 (patch)
tree6aec268de06076f7493f18540fe0671c0ca55066
parent25519bacd56ee2507cdde727d85458e5e5ef7949 (diff)
downloadbootstrap-319b65e64b6882ad2184f398f1763543cfa48a16.tar.xz
bootstrap-319b65e64b6882ad2184f398f1763543cfa48a16.zip
prevent default
-rw-r--r--js/bootstrap-carousel.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/bootstrap-carousel.js b/js/bootstrap-carousel.js
index 3262f0cab..500c7da7f 100644
--- a/js/bootstrap-carousel.js
+++ b/js/bootstrap-carousel.js
@@ -147,6 +147,7 @@
, $target = $($this.attr('data-target') || $this.attr('href'))
, options = !$target.data('modal') && $.extend({}, $target.data(), $this.data())
$target.carousel(options)
+ e.preventDefault()
})
})