Moved some settings to a separate accordion to gather stuff mroe

This commit is contained in:
Kasper Rynning-Tønnesen
2018-10-29 14:47:58 +01:00
parent 3998817b62
commit dde0586ca3
3 changed files with 48 additions and 40 deletions

View File

@@ -179,7 +179,9 @@ var Channel = {
}
if(!Helper.mobilecheck() && (document.querySelectorAll("#alreadychannel").length === 0 || !Hostcontroller.old_id || document.getElementById("code-text").innerText.toUpperCase() == "ABBADUR")) setup_host_initialization();
setup_suggested_listener();
if(!Helper.mobilecheck()) Helper.removeClass(".intelligent-accordion", "hide-on-small-only");
if(!Helper.mobilecheck()) {
showOnSmallNotMobile();
}
if(document.querySelectorAll("#alreadychannel").length === 0 || Helper.mobilecheck()){
setup_now_playing_listener();
get_list_listener();

View File

@@ -611,6 +611,13 @@ function loadChromecastVideo() {
});
}
function showOnSmallNotMobile() {
var elements = document.querySelectorAll(".hide-on-mobile-only");
for(var i = 0; i < elements.length; i++) {
Helper.removeClass(elements[i], "hide-on-small-only");
}
}
function enable_intelligent_list() {
if(Crypt.get_intelligent_list_enabled()) {
intelligentList = true;