mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Only removing channel-load on when loaded on mobile
This commit is contained in:
@@ -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();
|
||||
}
|
||||
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)
|
||||
}
|
||||
if(client) {
|
||||
$("#channel-load").remove();
|
||||
}
|
||||
//List.populate_list(response.responseJSON.results);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -288,12 +288,12 @@ var Player = {
|
||||
if(embed && !autoplay) autoplay = true;
|
||||
if(!window.MSStream) {
|
||||
$("#player").css("opacity", "1");
|
||||
if(!Helper.mobilecheck()) {
|
||||
//if(!Helper.mobilecheck()) {
|
||||
$("#channel-load").css("display", "none");
|
||||
/*if(Frontpage.winter && $("#snow").length == 0) {
|
||||
$("#video-container").prepend('<div id="snow" class="snow-channel"></div>');
|
||||
}*/
|
||||
}
|
||||
//}
|
||||
}
|
||||
playing = true;
|
||||
if(beginning && Helper.mobilecheck() && !chromecastAvailable){
|
||||
|
||||
Reference in New Issue
Block a user