1
0
Fork 0

Got rid of drag div in playlist

This commit is contained in:
Gregory Eremin 2011-09-26 14:06:14 +04:00
parent 023e405563
commit 2f75877f38
2 changed files with 1 additions and 10 deletions

View File

@ -57,12 +57,11 @@ class window.Player
<li id="i' +Math.round(Math.random() * 999999)+ '" data-id="'+item.id+'">
<div class="song-duration">' +item.duration+ '</div>
<div class="remove">remove</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'
$('.playlist').sortable axis: 'y', cursor: 'move'
if initial_count == 0 and not _player.hasTrack()
_player.setTrack($('.playlist li').first().attr('id').split('i')[1])
false

View File

@ -60,14 +60,6 @@
list-style: none;
background-color: #ffffff;
border-bottom: #DDD 1px solid;
.drag {
float: left;
margin: 11px 0 0 -6px;
width: 15px;
height: 26px;
background: url("/assets/drag.png");
cursor: pointer;
}
.artist-name {
font-size: 11px;
margin: 0 0 0 5px;