Minor player fixes
This commit is contained in:
parent
c2042802d4
commit
7f9af6d863
|
@ -22,7 +22,7 @@ var Player = {
|
|||
$('.playlist-tracks').sortable();
|
||||
},
|
||||
|
||||
setTrack: function(id) {console.log(1);
|
||||
setTrack: function(id) {
|
||||
var $obj = $('#i'+ id);
|
||||
var query = $obj.find('.title').text();
|
||||
var length = $obj.find('.duration').text();
|
||||
|
@ -77,6 +77,7 @@ var Player = {
|
|||
|
||||
reset: function() {
|
||||
Audio.pause();
|
||||
Audio.killListener();
|
||||
$('#player .loaded, #player .played').width(0);
|
||||
$('#player .now-playing').text('Select track');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue