From 436732dd39091e2b01039829b4e45f27fde0c191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Tue, 22 Jan 2019 18:20:11 +0100 Subject: [PATCH] Fix for mobile not correctly handling intelligent lists on joining from frontpage --- server/public/assets/js/list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/public/assets/js/list.js b/server/public/assets/js/list.js index 8a892bfb..e1cbdb3e 100755 --- a/server/public/assets/js/list.js +++ b/server/public/assets/js/list.js @@ -10,6 +10,7 @@ var List = { found: [], channel_function: function(msg) { + if(Helper.mobilecheck()) socket_connected = true; if(user_auth_started) { user_auth_started = false; M.Modal.getInstance(document.getElementById("user_password")).close(); @@ -545,7 +546,6 @@ var List = { full_playlist[index_of_song].votes += 1; full_playlist[index_of_song].added = time; - if(intelligentList) { document.getElementById(voted).querySelector(".list-votes").innerText = full_playlist[index_of_song].votes; intelligentQueue.push({ @@ -645,7 +645,6 @@ var List = { "client " + client, "socket_connected " + socket_connected ]); - if((client || Helper.mobilecheck()) && !socket_connected) { if(vote != "del") { vote_ajax(id); @@ -654,6 +653,7 @@ var List = { } return; } + if(!offline || (vote == "del" && (hasadmin && (!w_p && adminpass != "")))){ /*var u = Crypt.crypt_pass(Crypt.get_userpass(chan.toLowerCase()), true); if(u == undefined) u = "";*/