Skip to content

Commit

Permalink
Merge pull request #5172 from gitcoinco/fix/multiple-popovers
Browse files Browse the repository at this point in the history
close any other popover
  • Loading branch information
thelostone-mc authored Sep 11, 2019
2 parents a04813a + b2b8613 commit a6d073c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/dashboard/templates/bounty/details.html
Original file line number Diff line number Diff line change
Expand Up @@ -486,12 +486,14 @@ <h3>{{ noscript.keywords }}</h3>
<script src="{% static "v2/js/clipboard.js" %}"></script>
<script>
$('[data-toggle="popover"]').popover()
$("body").on("mouseover", "[data-username]", function(e) {
openContributorPopOver($(this).data("username"), $(this));
$('body').on('mouseover', '[data-username]', function(e) {
openContributorPopOver($(this).data('username'), $(this));
$('[data-username]').not(this).popover('hide');
});
$("body").on("mouseout", "[data-username]", function(e) {
$('body').on('mouseout', '[data-username]', function(e) {
$(this).popover('dispose');
});

</script>
<script src="{% static "v2/js/lib/daterangepicker.min.js" %}"></script>
<script src="{% static "v2/js/pages/bounty_funder_payout_reminder.js" %}"></script>
Expand Down

0 comments on commit a6d073c

Please sign in to comment.