It seem like you now have to prevent the default behavior of the link because they added the option to popup the popover on hover/focus. Right now the link will activate and since the href is pointing to "#" it will bring you to the top of the page. Before in older versions, it used to prevent this default automatically.
Your javascript code should look something like this:
<script>
$("a[rel=popover]")
.popover()
.click(function(e) {
e.preventDefault();
});
</script>
With html like this
<a href="#"
class="btn btn-large btn-danger"
rel="popover"
data-content="And here's some amazing content. It's very engaging. right?"
data-original-title="A Title">
Click to toggle popover
</a>
Here is a working JSfiddle. http://jsfiddle.net/hajpoj/KPU47/7/
Edit: Alternatively you could use a div instead of a anchor tag and not have to do the whole prevent default thing.
<div
class="btn btn-large btn-danger popover-link"
data-content="And here's some amazing content. It's very engaging. right?"
data-original-title="A Title">Click to toggle popover
</div>?
<script>
$(".popover-link").popover();
</script>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…