From b224b015a61e1ba41ab8bc31f7cefcaa7b3b2753 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Wed, 16 Jun 2021 21:57:27 -0500 Subject: [PATCH] Make contest ranking dynamic --- templates/contest/ranking.html | 30 ++++++++++++++++++++++++++++++ templates/ticket/ticket.html | 4 ---- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/templates/contest/ranking.html b/templates/contest/ranking.html index 63b0538..7164d4c 100644 --- a/templates/contest/ranking.html +++ b/templates/contest/ranking.html @@ -227,6 +227,7 @@ }); {% endif %} + {% include "contest/media-js.html" %} diff --git a/templates/ticket/ticket.html b/templates/ticket/ticket.html index 6fd3c2b..4146115 100644 --- a/templates/ticket/ticket.html +++ b/templates/ticket/ticket.html @@ -275,13 +275,10 @@ } function ticket_message(ticket) { - console.log('Fetching data for: ' + ticket.message); $.ajax({ url: '{{ url('ticket_message_ajax', ticket.id) }}', data: {message: ticket.message}, success: function (data) { - console.log('Got data for: ' + ticket.message); - console.log(data); $('#messages').append($(data.message)); }, error: function (data) { @@ -299,7 +296,6 @@ return new EventReceiver( "{{ EVENT_DAEMON_LOCATION }}", "{{ EVENT_DAEMON_POLL_LOCATION }}", ['ticket-{{ ticket.id }}'], last_msg, function (message) { - console.log(message); switch (message.type) { case 'ticket-status': ticket_status(message);