Only removing channel-load on when loaded on mobile

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-15 15:52:33 +01:00
parent e6d9143fa8
commit b4dc90c3ea
2 changed files with 8 additions and 5 deletions

View File

@@ -172,11 +172,12 @@ function get_list_ajax() {
url: "/api/list/" + chan.toLowerCase(),
success: function(response) {
if(response.results.length > 0) {
$("#channel-load").remove();
if(response.status == 403) {
start_auth();
}
$("#channel-load").remove();
if(client) {
$("#channel-load").remove();
}
List.populate_list(response.results);
}
},
@@ -188,7 +189,9 @@ function get_list_ajax() {
get_list_ajax();
}, response.getResponseHeader("Retry-After") * 1000)
}
$("#channel-load").remove();
if(client) {
$("#channel-load").remove();
}
//List.populate_list(response.responseJSON.results);
}
});