mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed issue with Toasts, and temporarily disabled drag-to-delete on mobile
This commit is contained in:
2
server/public/assets/dist/embed.min.js
vendored
2
server/public/assets/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
2
server/public/assets/dist/main.min.js
vendored
2
server/public/assets/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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);
|
||||
|
||||
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user