Fixed track ended switch

This commit is contained in:
gballan1 2016-11-29 12:20:04 -05:00
parent 5e902234ef
commit a816144a8c

View File

@ -19,9 +19,9 @@ $(document).ready(function() {
});
// on track end
player.on('ended', function() {
$(player).on('ended', function() {
// find selected track
changeSelectedTrack($('.music-track.selected').next());
changeSelectedTrack($('.music-track.selected').next().get(0));
});
});