Add to playlist fix
This commit is contained in:
parent
904265dd2f
commit
16a52c9346
|
@ -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
|
||||
|
|
|
@ -59,17 +59,6 @@
|
|||
%a.btn.small-round »
|
||||
|
||||
%ul.playlist
|
||||
%li
|
||||
.song-duration 4:29
|
||||
.drag
|
||||
.artist-name Foo Fighters
|
||||
.song-title The Pretender
|
||||
%li
|
||||
.song-duration 4:29
|
||||
.drag
|
||||
.artist-name Foo Fighters
|
||||
.song-title The Pretender
|
||||
|
||||
|
||||
.fullscreen
|
||||
.inner
|
||||
|
|
Loading…
Reference in New Issue