]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
prevent default for hover click
authorJacob Thornton <jacobthornton@gmail.com>
Mon, 12 Sep 2011 18:14:09 +0000 (11:14 -0700)
committerJacob Thornton <jacobthornton@gmail.com>
Mon, 12 Sep 2011 18:14:09 +0000 (11:14 -0700)
docs/javascript.html

index 6d5cf9517e47e3cb49e4151ca2bc715afba0701d..cd5f8d38fbcef9db1a53c8b0f1e5e875e0106422 100644 (file)
@@ -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>