1
0
Fork 0

Add to playlist fix

This commit is contained in:
Gregory Eremin 2011-09-15 13:09:25 +04:00
parent 904265dd2f
commit 16a52c9346
2 changed files with 3 additions and 14 deletions

View File

@ -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

View File

@ -59,17 +59,6 @@
%a.btn.small-round &raquo;
%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