From 16a52c93469354f12a7b312c80bb644f103fcac6 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Thu, 15 Sep 2011 13:09:25 +0400 Subject: [PATCH] Add to playlist fix --- app/assets/javascripts/player.coffee | 6 +++--- app/views/layouts/application.html.haml | 11 ----------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/app/assets/javascripts/player.coffee b/app/assets/javascripts/player.coffee index 492b94b..9cb5ba2 100644 --- a/app/assets/javascripts/player.coffee +++ b/app/assets/javascripts/player.coffee @@ -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 '
  • -
    ' +item.length+ '
    +
    ' +item.duration+ '
    ' +item.artist+ '
    ' +item.name+ '
  • ' + _player.playlist.push item $('.playlist').sortable axis: 'y', handle: '.drag' # if autoplay diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 08064b2..5764ec6 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -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