Both client and mobile send ajax at the beginning when socket disconnected

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-23 18:40:08 +01:00
parent bb59378a2d
commit e5460bf605
2 changed files with 2 additions and 2 deletions

View File

@@ -553,7 +553,7 @@ var List = {
"client " + client,
"socket_connected " + socket_connected
]);
if(client && !socket_connected) {
if((client || Helper.mobilecheck()) && !socket_connected) {
if(vote != "del") {
vote_ajax(id);
} else {

View File

@@ -463,7 +463,7 @@ var Search = {
},
submit: function(id,title,duration, playlist, num, full_num, start, end){
if(client && !socket_connected) {
if((client || Helper.mobilecheck()) && !socket_connected) {
add_ajax(id, title, duration, playlist, num, full_num, start, end);
return;
}