Fixed issue with localmode

This commit is contained in:
Kasper Rynning-Tønnesen
2018-04-06 17:50:25 +02:00
parent a44856eb57
commit 6bac97c15f
2 changed files with 4 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ function hide_native(way) {
$('.castButton').addClass('castButton-white-active');
}
if(!Helper.mobilecheck()) {
$('.castButton').tooltip('remove');
$('.castButton').tooltip('destroy');
$('.castButton').tooltip({
delay: 5,
position: "top",
@@ -89,7 +89,7 @@ function hide_native(way) {
$("#player_overlay_text").toggleClass("hide");
} else if(way == 0){
if(!Helper.mobilecheck()) {
$('.castButton').tooltip('remove');
$('.castButton').tooltip('destroy');
$('.castButton').tooltip({
delay: 5,
position: "top",
@@ -517,7 +517,7 @@ function change_offline(enabled, already_offline){
ga('send', 'event', "button-click", "offline", "", offline ? 1 : 0);
socket.emit("offline", {status: enabled, channel: chan != undefined ? chan.toLowerCase() : ""});
if(!Helper.mobilecheck()) {
$("#offline-mode").tooltip('remove');
$("#offline-mode").tooltip('destroy');
}
if(enabled){
if(list_html){