Added functionality to move on to next track in playlist when track ends
This commit is contained in:
parent
e1fccae03f
commit
5e902234ef
@ -17,6 +17,12 @@ $(document).ready(function() {
|
||||
// change selected album
|
||||
changeSelectedAlbum(this);
|
||||
});
|
||||
|
||||
// on track end
|
||||
player.on('ended', function() {
|
||||
// find selected track
|
||||
changeSelectedTrack($('.music-track.selected').next());
|
||||
});
|
||||
});
|
||||
|
||||
function changeSelectedAlbum(albumElem) {
|
||||
|
Loading…
Reference in New Issue
Block a user