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
+7 -7
View File
@@ -101,14 +101,14 @@ var List = {
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id}); 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; break;
case "added": case "added":
List.added_song(msg.value); List.added_song(msg.value);
if(full_playlist.length > 0) { if(full_playlist.length > 0) {
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id}); 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; break;
case "deleted": case "deleted":
List.deleted_song(msg.value, msg.removed); 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}); 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; break;
case "song_change": case "song_change":
if(window.location.pathname != "/") List.song_change(msg.time, msg.remove); if(window.location.pathname != "/") List.song_change(msg.time, msg.remove);
if(full_playlist.length > 0) { if(full_playlist.length > 0) {
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id}); 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; break;
} }
}, },
@@ -979,13 +979,13 @@ var List = {
} }
if(Helper.mobilecheck()) { /*if(Helper.mobilecheck()) {
song.find(".waves-effect").removeClass("waves-effect"); song.find(".waves-effect").removeClass("waves-effect");
song.find(".waves-light").removeClass("waves-light"); song.find(".waves-light").removeClass("waves-light");
song.find(".list-song").addClass("mobile-overflow"); song.find(".list-song").addClass("mobile-overflow");
} else { } else {*/
song.find(".mobile-delete").remove(); song.find(".mobile-delete").remove();
} //}
song.find(".list-title").text(video_title); song.find(".list-title").text(video_title);
song.find(".list-title").attr("title", video_title); song.find(".list-title").attr("title", video_title);
+1 -3
View File
@@ -1196,9 +1196,7 @@ $(document).on("click", ".first_page", function(e){
}); });
$(document).on('click', '#toast-container', function(){ $(document).on('click', '#toast-container', function(){
$(".toast").fadeOut(function(){ Materialize.Toast.removeAll();
$(".toast").remove();
});
}); });
$(document).on('click', "#aprilfools", function(){ $(document).on('click', "#aprilfools", function(){