From 4af4985ac5b260732313249da2f176062911765b Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 4 Sep 2020 10:37:49 -0700 Subject: [PATCH] Add return to all onclicks, and ; to other javascript hooks. --- frontends/ycdl_flask/templates/channel.html | 20 ++++++++++---------- frontends/ycdl_flask/templates/channels.html | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/frontends/ycdl_flask/templates/channel.html b/frontends/ycdl_flask/templates/channel.html index 44b73aa..47e7c97 100644 --- a/frontends/ycdl_flask/templates/channel.html +++ b/frontends/ycdl_flask/templates/channel.html @@ -167,8 +167,8 @@ https://stackoverflow.com/a/35153397
{% if channel is not none %} -
-
+
+

{% endif %} @@ -207,7 +207,7 @@ https://stackoverflow.com/a/35153397 {% for video in videos %}
@@ -227,7 +227,7 @@ https://stackoverflow.com/a/35153397 {% else %} class="video_action_pending" {% endif %} - onclick="action_button_passthrough(event, api.videos.mark_state, 'pending')" + onclick="return action_button_passthrough(event, api.videos.mark_state, 'pending');" >Revert to Pending
- - + +
{% endfor %} @@ -261,7 +261,7 @@ https://stackoverflow.com/a/35153397
New videos are: - @@ -273,7 +273,7 @@ https://stackoverflow.com/a/35153397
{% endif %} diff --git a/frontends/ycdl_flask/templates/channels.html b/frontends/ycdl_flask/templates/channels.html index ff16688..b37ab48 100644 --- a/frontends/ycdl_flask/templates/channels.html +++ b/frontends/ycdl_flask/templates/channels.html @@ -44,11 +44,11 @@ {{header.make_header()}}
-
-
+
+
- +