Skip to content

Commit

Permalink
fixes popover problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Falk committed Nov 17, 2018
1 parent 5a7b5df commit ce05a06
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions templates/moviegeek/index.html
Expand Up @@ -174,6 +174,16 @@
});
})
};
$(document).on('click', function (e) {
$('[data-toggle="popover"],[data-original-title]').each(function () {
//the 'is' for buttons that trigger popups
//the 'has' for icons within a button that triggers a popup
if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) {
(($(this).popover('hide').data('bs.popover')||{}).inState||{}).click = false // fix for BS 3.3.6
}

});
});
</script>
{% endblock head %}

Expand Down

0 comments on commit ce05a06

Please sign in to comment.