Add to playlist fix
This commit is contained in:
parent
904265dd2f
commit
16a52c9346
|
@ -53,14 +53,14 @@ class window.Player
|
||||||
autoplay = false
|
autoplay = false
|
||||||
initial_count = $('.playlist-tracks li').length
|
initial_count = $('.playlist-tracks li').length
|
||||||
for item in tracks
|
for item in tracks
|
||||||
_player.playlist.push item
|
$('.playlist').append '
|
||||||
$('.playlist-tracks').append '
|
|
||||||
<li id="i' +Math.round(Math.random() * 999999)+ '" data-id="'+item.id+'">
|
<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="drag"></div>
|
||||||
<div class="artist-name">' +item.artist+ '</div>
|
<div class="artist-name">' +item.artist+ '</div>
|
||||||
<div class="song-title">' +item.name+ '</div>
|
<div class="song-title">' +item.name+ '</div>
|
||||||
</li>'
|
</li>'
|
||||||
|
_player.playlist.push item
|
||||||
$('.playlist').sortable axis: 'y', handle: '.drag'
|
$('.playlist').sortable axis: 'y', handle: '.drag'
|
||||||
|
|
||||||
# if autoplay
|
# if autoplay
|
||||||
|
|
|
@ -59,17 +59,6 @@
|
||||||
%a.btn.small-round »
|
%a.btn.small-round »
|
||||||
|
|
||||||
%ul.playlist
|
%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
|
.fullscreen
|
||||||
.inner
|
.inner
|
||||||
|
|
Loading…
Reference in New Issue