Skip to content

Commit

Permalink
fix wrong reference to $
Browse files Browse the repository at this point in the history
  • Loading branch information
jpelay committed Sep 7, 2023
1 parent 3186544 commit 1d1af68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions templates/class-overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<div>
{% if achievement %}
<script>
$(function() {
hedyApp.showAchievements({{ achievement|safe }}, false, "");
});
document.addEventListener("DOMContentLoaded", function() {
hedyApp.showAchievements({{ achievement|safe }}, false, "");
});
</script>
{% endif %}
<div class="flex flex-col gap-4">
Expand Down
6 changes: 3 additions & 3 deletions templates/explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<div class="px-8 py-12">
{% if achievement %}
<script>
$(function() {
hedyApp.showAchievements({{ achievement|safe }}, false, "");
});
document.addEventListener("DOMContentLoaded", function() {
hedyApp.showAchievements({{ achievement|safe }}, false, "");
});
</script>
{% endif %}
<!-- <h2 class="px-8 mb-4">{{_('explore_programs')}}</h2> -->
Expand Down

0 comments on commit 1d1af68

Please sign in to comment.