Add to playlist fix
This commit is contained in:
@@ -53,14 +53,14 @@ class window.Player
|
||||
autoplay = false
|
||||
initial_count = $('.playlist-tracks li').length
|
||||
for item in tracks
|
||||
_player.playlist.push item
|
||||
$('.playlist-tracks').append '
|
||||
$('.playlist').append '
|
||||
<li id="i' +Math.round(Math.random() * 999999)+ '" data-id="'+item.id+'">
|
||||
<div class="song-duration">' +item.length+ '</div>
|
||||
<div class="song-duration">' +item.duration+ '</div>
|
||||
<div class="drag"></div>
|
||||
<div class="artist-name">' +item.artist+ '</div>
|
||||
<div class="song-title">' +item.name+ '</div>
|
||||
</li>'
|
||||
_player.playlist.push item
|
||||
$('.playlist').sortable axis: 'y', handle: '.drag'
|
||||
|
||||
# if autoplay
|
||||
|
||||
Reference in New Issue
Block a user