<a id="popover" href="#">Test</a>
$("#popover").popover({
container: "body",
content: getContent,
html: true,
placement: "bottom",
trigger: "manual"
}).click(function(event) {
$("#popover").popover('show');
event.stopPropagation();
});
$(document).click(function() {
$("#popover").popover('hide');
});