Fixed issue with Toasts, and temporarily disabled drag-to-delete on mobile

This commit is contained in:
Kasper Rynning-Tønnesen
2017-08-11 20:16:20 +02:00
parent b92949fd18
commit c010bcc4df
4 changed files with 10 additions and 12 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -101,14 +101,14 @@ var List = {
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
}
}
if(!w_p) List.dragging(true);
//if(!w_p) List.dragging(true);
break;
case "added":
List.added_song(msg.value);
if(full_playlist.length > 0) {
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
}
if(!w_p) List.dragging(true);
//if(!w_p) List.dragging(true);
break;
case "deleted":
List.deleted_song(msg.value, msg.removed);
@@ -120,14 +120,14 @@ var List = {
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
}
}
if(!w_p) List.dragging(true);
//if(!w_p) List.dragging(true);
break;
case "song_change":
if(window.location.pathname != "/") List.song_change(msg.time, msg.remove);
if(full_playlist.length > 0) {
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
}
if(!w_p) List.dragging(true);
//if(!w_p) List.dragging(true);
break;
}
},
@@ -979,13 +979,13 @@ var List = {
}
if(Helper.mobilecheck()) {
/*if(Helper.mobilecheck()) {
song.find(".waves-effect").removeClass("waves-effect");
song.find(".waves-light").removeClass("waves-light");
song.find(".list-song").addClass("mobile-overflow");
} else {
} else {*/
song.find(".mobile-delete").remove();
}
//}
song.find(".list-title").text(video_title);
song.find(".list-title").attr("title", video_title);

View File

@@ -1196,9 +1196,7 @@ $(document).on("click", ".first_page", function(e){
});
$(document).on('click', '#toast-container', function(){
$(".toast").fadeOut(function(){
$(".toast").remove();
});
Materialize.Toast.removeAll();
});
$(document).on('click', "#aprilfools", function(){