mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue with localmode
This commit is contained in:
@@ -59,6 +59,7 @@ function get_short_id(socket) {
|
|||||||
|
|
||||||
function check_inlist(coll, guid, socket, offline)
|
function check_inlist(coll, guid, socket, offline)
|
||||||
{
|
{
|
||||||
|
if(coll == undefined) return;
|
||||||
coll = coll.replace(/ /g,'');
|
coll = coll.replace(/ /g,'');
|
||||||
if(!offline && coll != undefined){
|
if(!offline && coll != undefined){
|
||||||
db.collection("connected_users").update({"_id": coll}, {$addToSet:{users: guid}}, {upsert: true}, function(err, updated) {
|
db.collection("connected_users").update({"_id": coll}, {$addToSet:{users: guid}}, {upsert: true}, function(err, updated) {
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ function hide_native(way) {
|
|||||||
$('.castButton').addClass('castButton-white-active');
|
$('.castButton').addClass('castButton-white-active');
|
||||||
}
|
}
|
||||||
if(!Helper.mobilecheck()) {
|
if(!Helper.mobilecheck()) {
|
||||||
$('.castButton').tooltip('remove');
|
$('.castButton').tooltip('destroy');
|
||||||
$('.castButton').tooltip({
|
$('.castButton').tooltip({
|
||||||
delay: 5,
|
delay: 5,
|
||||||
position: "top",
|
position: "top",
|
||||||
@@ -89,7 +89,7 @@ function hide_native(way) {
|
|||||||
$("#player_overlay_text").toggleClass("hide");
|
$("#player_overlay_text").toggleClass("hide");
|
||||||
} else if(way == 0){
|
} else if(way == 0){
|
||||||
if(!Helper.mobilecheck()) {
|
if(!Helper.mobilecheck()) {
|
||||||
$('.castButton').tooltip('remove');
|
$('.castButton').tooltip('destroy');
|
||||||
$('.castButton').tooltip({
|
$('.castButton').tooltip({
|
||||||
delay: 5,
|
delay: 5,
|
||||||
position: "top",
|
position: "top",
|
||||||
@@ -517,7 +517,7 @@ function change_offline(enabled, already_offline){
|
|||||||
ga('send', 'event', "button-click", "offline", "", offline ? 1 : 0);
|
ga('send', 'event', "button-click", "offline", "", offline ? 1 : 0);
|
||||||
socket.emit("offline", {status: enabled, channel: chan != undefined ? chan.toLowerCase() : ""});
|
socket.emit("offline", {status: enabled, channel: chan != undefined ? chan.toLowerCase() : ""});
|
||||||
if(!Helper.mobilecheck()) {
|
if(!Helper.mobilecheck()) {
|
||||||
$("#offline-mode").tooltip('remove');
|
$("#offline-mode").tooltip('destroy');
|
||||||
}
|
}
|
||||||
if(enabled){
|
if(enabled){
|
||||||
if(list_html){
|
if(list_html){
|
||||||
|
|||||||
Reference in New Issue
Block a user