Skip to content

Commit

Permalink
Make tooltip not interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjp93 committed Aug 10, 2024
1 parent 0392feb commit a43a3d0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions match/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,8 +914,9 @@ def _bounties(self):
bounties[p_id].building_bounty += partial_bounty

for event in frame.championkillevent_set.all():
bounties[event.killer_id].champion_kill_gold += event.bounty
bounties[event.killer_id].champion_kill_bounty += event.shutdown_bounty
if event.killer_id != 0:
bounties[event.killer_id].champion_kill_gold += event.bounty
bounties[event.killer_id].champion_kill_bounty += event.shutdown_bounty

bounties[event.victim_id].champion_kill_gold_given += event.bounty
bounties[event.victim_id].champion_kill_bounty_given += event.shutdown_bounty
Expand Down
1 change: 1 addition & 0 deletions match/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def get_object(self, queryset=None):
match = super().get_object(queryset)
if not getattr(match, 'advancedtimeline', None):
mt.import_advanced_timeline(match.id)
match.refresh_from_db()
return match

def get_context_data(self, **kwargs):
Expand Down
3 changes: 2 additions & 1 deletion templates/cotton/tooltip.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<c-vars trigger="click" />
<c-vars trigger="click" interactive="false" />

<div
tabindex="1"
Expand All @@ -9,6 +9,7 @@
tippy {{ class }}
"
data-tippy-trigger="{{ trigger }}"
data-tippy-interactive="{{ interactive }}"
>
{{ slot }}
<div class="tippy-content" style="display: none;">
Expand Down
1 change: 0 additions & 1 deletion templates/layout/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
return reference.querySelector(".tippy-content").innerHTML
},
allowHTML: true,
interactive: true,
});
}

Expand Down

0 comments on commit a43a3d0

Please sign in to comment.