From 65bbc0b5493fbddc4cd14cf86c8ab97a13a199aa Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 11 Aug 2025 14:43:25 +0200 Subject: [PATCH] Reimplement JS code in talk editor without JQuery Use native code instead, which speeds it up and removes some dependencies (much more to go on other pages though). As a bonus, this fixes #132, which was referencing an incorrect variable before. --- template/confreg/sessionvotes.html | 344 ++++++++++++++++------------- 1 file changed, 191 insertions(+), 153 deletions(-) diff --git a/template/confreg/sessionvotes.html b/template/confreg/sessionvotes.html index ba68118e..cb11d61b 100644 --- a/template/confreg/sessionvotes.html +++ b/template/confreg/sessionvotes.html @@ -4,33 +4,11 @@ {%load dictutil%} {%block title%}Vote for sessions{%endblock%} {%block extrahead%} -{%asset "css" "jqueryui1" %} -{%asset "js" "jqueryui1" %} -{%asset "js" "selectize" %} -{%asset "css" "selectize" %} {%asset "css" "fontawesome4" %} {%endblock%} {%block layoutblock%} @@ -479,7 +507,7 @@ a.sortheader[data-sorted="-1"]::after { {%for u in users%} {% if conference.showvotes or isadmin or u == user.username and isvoter %} - {%if u == user.username%}{{u}}{%else%}{{u}}{%endif%} + {%if u == user.username%}{{u}}{%else%}{{u}}{%endif%} {% endif %} {%endfor%} @@ -491,7 +519,7 @@ a.sortheader[data-sorted="-1"]::after { {%for s in sessionvotes%} - + {{forloop.counter}} {{s.id}} @@ -503,7 +531,7 @@ a.sortheader[data-sorted="-1"]::after { {{s.trackname|default:""}} {{s.tags|join_dictkeys:"tag"}} {%if isadmin%} - {{s.status}} + {{s.status}} {%else%} {{s.status}} {%endif%} @@ -511,7 +539,7 @@ a.sortheader[data-sorted="-1"]::after { {%for u in users%} {%if u == user.username%} - {%for val, opt in options%} {%endfor%} @@ -531,13 +559,13 @@ a.sortheader[data-sorted="-1"]::after { {%if isvoter%}
- +
{%endif%}
{%for u, c in s.comments.items%}
    -
{%endfor%}
@@ -589,11 +617,21 @@ a.sortheader[data-sorted="-1"]::after { -
-
+ +

Change status

+

Change status to:

+
+{%for statusid, status in status_choices %} + +{%endfor%} +
+ +
-
+ +

Edit comment

-
+ + {%endblock%} -- 2.39.5