From d0a0a87b43c95d47cd8d30efe1bc8101382263b7 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 3 Jun 2020 12:28:09 -0700 Subject: [PATCH] Add function common.refresh. --- frontends/ycdl_flask/static/js/common.js | 6 ++++++ frontends/ycdl_flask/templates/channel.html | 4 ++-- frontends/ycdl_flask/templates/channels.html | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/frontends/ycdl_flask/static/js/common.js b/frontends/ycdl_flask/static/js/common.js index e27add4..85f17f6 100644 --- a/frontends/ycdl_flask/static/js/common.js +++ b/frontends/ycdl_flask/static/js/common.js @@ -140,6 +140,12 @@ function init_atag_merge_params() }); } +common.refresh = +function refresh() +{ + window.location.reload(); +} + common.on_pageload = function on_pageload() { diff --git a/frontends/ycdl_flask/templates/channel.html b/frontends/ycdl_flask/templates/channel.html index 2cd4ebf..134c8cf 100644 --- a/frontends/ycdl_flask/templates/channel.html +++ b/frontends/ycdl_flask/templates/channel.html @@ -154,8 +154,8 @@ https://stackoverflow.com/a/35153397 {{header.make_header()}}
{% if channel is not none %} - - + + All {% else %} diff --git a/frontends/ycdl_flask/templates/channels.html b/frontends/ycdl_flask/templates/channels.html index e87087e..41577b5 100644 --- a/frontends/ycdl_flask/templates/channels.html +++ b/frontends/ycdl_flask/templates/channels.html @@ -48,8 +48,8 @@ {{header.make_header()}}
- - + +