mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Updated way of deleting song when not exist
This commit is contained in:
4
public/dist/embed.min.js
vendored
4
public/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
8
public/dist/main.min.js
vendored
8
public/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -381,11 +381,12 @@ 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});
|
||||||
}
|
}
|
||||||
}, 305);
|
}, 305);
|
||||||
|
if(removed) $("#"+deleted).remove();
|
||||||
|
|
||||||
}catch(err){
|
} catch(err) {
|
||||||
full_playlist.splice(List.getIndexOfSong(deleted), 1);
|
full_playlist.splice(List.getIndexOfSong(deleted), 1);
|
||||||
if(!List.empty){
|
if(!List.empty){
|
||||||
$("#wrapper").children()[$("#wrapper").children().length-1].remove();
|
$("#"+deleted).remove();
|
||||||
if(index < List.page && $("#wrapper").children().length - (List.page + 1) >= 0){
|
if(index < List.page && $("#wrapper").children().length - (List.page + 1) >= 0){
|
||||||
$($("#wrapper").children()[List.page - 1]).css("display", "block");
|
$($("#wrapper").children()[List.page - 1]).css("display", "block");
|
||||||
} else if($("#wrapper").children().length > List.page + List.can_fit){
|
} else if($("#wrapper").children().length > List.page + List.can_fit){
|
||||||
|
|||||||
Reference in New Issue
Block a user