aboutsummaryrefslogtreecommitdiff
path: root/docs/javascript.html
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2011-09-12 11:14:09 -0700
committerJacob Thornton <[email protected]>2011-09-12 11:14:09 -0700
commit1645b57efe01d7f2ebc5d28d527a00f1222d0070 (patch)
tree998d56367f81f50b7f473fa56c31896118860ad9 /docs/javascript.html
parent89465f8ce1065f907180cfffa3eac317b7c9774d (diff)
downloadbootstrap-1645b57efe01d7f2ebc5d28d527a00f1222d0070.tar.xz
bootstrap-1645b57efe01d7f2ebc5d28d527a00f1222d0070.zip
prevent default for hover click
Diffstat (limited to 'docs/javascript.html')
-rw-r--r--docs/javascript.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/javascript.html b/docs/javascript.html
index 6d5cf9517..cd5f8d38f 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -606,9 +606,13 @@ Sunt qui biodiesel mollit officia, fanny pack put a bird on it thundercats seita
<a href="#" class="btn danger" rel="popover" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">hover for popover</a>
<script>
$(function () {
- $("a[rel=popover]").popover({
- offset: 10
- })
+ $("a[rel=popover]")
+ .popover({
+ offset: 10
+ })
+ .click(function(e) {
+ e.preventDefault()
+ })
})
</script>
</div>