From 14ab3f3b0682668eaf570108fe6d3aa15927c2cb Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 2 Oct 2020 19:46:36 -0700 Subject: [PATCH] Reorganize a bunch of functions and other indulgences. --- frontends/ycdl_flask/static/js/api.js | 2 +- frontends/ycdl_flask/templates/channel.html | 272 ++++++++++++-------- 2 files changed, 169 insertions(+), 105 deletions(-) diff --git a/frontends/ycdl_flask/static/js/api.js b/frontends/ycdl_flask/static/js/api.js index 7a0584a..b3aabba 100644 --- a/frontends/ycdl_flask/static/js/api.js +++ b/frontends/ycdl_flask/static/js/api.js @@ -65,7 +65,7 @@ function callback_go_to_channels(response) } else { - console.log(response); + alert(JSON.stringify(response)); } } diff --git a/frontends/ycdl_flask/templates/channel.html b/frontends/ycdl_flask/templates/channel.html index cca98a7..6ecfb18 100644 --- a/frontends/ycdl_flask/templates/channel.html +++ b/frontends/ycdl_flask/templates/channel.html @@ -245,8 +245,7 @@ https://stackoverflow.com/a/35153397 >Ignore
- - +
{% endfor %} @@ -284,38 +283,14 @@ https://stackoverflow.com/a/35153397