diff --git a/frontends/ycdl_flask/static/js/api.js b/frontends/ycdl_flask/static/js/api.js index 8c12a03..c6ddb10 100644 --- a/frontends/ycdl_flask/static/js/api.js +++ b/frontends/ycdl_flask/static/js/api.js @@ -12,5 +12,14 @@ function refresh_channel(channel_id, force, callback) return common.post(url, data, callback); } +api.channels.refresh_all_channels = +function refresh_all_channels(force, callback) +{ + var url = "/refresh_all_channels"; + data = new FormData(); + data.append("force", force) + return common.post(url, data, callback); +} + /**************************************************************************************************/ api.videos = {}; diff --git a/frontends/ycdl_flask/templates/channels.html b/frontends/ycdl_flask/templates/channels.html index e3ac96c..7c1bbea 100644 --- a/frontends/ycdl_flask/templates/channels.html +++ b/frontends/ycdl_flask/templates/channels.html @@ -49,8 +49,8 @@ {{header.make_header()}}
- - + +
@@ -99,13 +99,5 @@ function add_channel(channel_id, callback) data.append("channel_id", channel_id); return common.post(url, data, callback); } - -function refresh_all_channels(force, callback) -{ - var url = "/refresh_all_channels"; - data = new FormData(); - data.append("force", force) - return common.post(url, data, callback); -}