mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Both client and mobile send ajax at the beginning when socket disconnected
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user