Got rid of drag div in playlist
This commit is contained in:
parent
023e405563
commit
2f75877f38
|
@ -57,12 +57,11 @@ class window.Player
|
||||||
<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.duration+ '</div>
|
<div class="song-duration">' +item.duration+ '</div>
|
||||||
<div class="remove">remove</div>
|
<div class="remove">remove</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
|
_player.playlist.push item
|
||||||
$('.playlist').sortable axis: 'y', handle: '.drag'
|
$('.playlist').sortable axis: 'y', cursor: 'move'
|
||||||
if initial_count == 0 and not _player.hasTrack()
|
if initial_count == 0 and not _player.hasTrack()
|
||||||
_player.setTrack($('.playlist li').first().attr('id').split('i')[1])
|
_player.setTrack($('.playlist li').first().attr('id').split('i')[1])
|
||||||
false
|
false
|
||||||
|
|
|
@ -60,14 +60,6 @@
|
||||||
list-style: none;
|
list-style: none;
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
border-bottom: #DDD 1px solid;
|
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 {
|
.artist-name {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
margin: 0 0 0 5px;
|
margin: 0 0 0 5px;
|
||||||
|
|
Loading…
Reference in New Issue