Skip to content

Commit

Permalink
Merge pull request #695 from terceiro/fix-popover
Browse files Browse the repository at this point in the history
profile: delay jQuery calls until after page is really loaded
  • Loading branch information
stefanor authored Dec 27, 2023
2 parents 55e4d8c + 3efe460 commit 22d13f8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wafer/users/templates/wafer.users/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
{% endblock content %}
{% block extra_foot %}
<script type="text/javascript">

$("#profile-avatar [rel=popover]").attr("data-bs-content", $("#profile-avatar .popover-contents").html());
$("a[rel=popover]").popover();
$(function() {
$("#profile-avatar [rel=popover]").attr("data-bs-content", $("#profile-avatar .popover-contents").html());
$("a[rel=popover]").popover();
})
</script>
{% endblock extra_foot %}

0 comments on commit 22d13f8

Please sign in to comment.