1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-12 00:24:03 +02:00

prevent default for hover click

This commit is contained in:
Jacob Thornton
2011-09-12 11:14:09 -07:00
parent 89465f8ce1
commit 1645b57efe

View 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> <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> <script>
$(function () { $(function () {
$("a[rel=popover]").popover({ $("a[rel=popover]")
offset: 10 .popover({
}) offset: 10
})
.click(function(e) {
e.preventDefault()
})
}) })
</script> </script>
</div> </div>