All tracks deleting correctly. Fixes #64
This commit is contained in:
parent
263f6e0ab0
commit
08b04b781d
|
@ -228,7 +228,9 @@ $('.playlist-tracks li .fade, .playlist-tracks li .duration, .playlist-tracks li
|
|||
$('.playlist-tracks li .remove').live('click', function(){
|
||||
var $li = $(this).parent().parent();
|
||||
if ($li.hasClass('now')) {
|
||||
Player.reset();
|
||||
$('#jplayer').jPlayer('clearMedia');
|
||||
$('#player .now-playing').text('...');
|
||||
$('#player .loaded, #player .played').width(0);
|
||||
}
|
||||
$li.remove();
|
||||
});
|
||||
|
@ -252,12 +254,4 @@ $('#empty-playlist').live('click', function(){
|
|||
$('#player .now-playing').text('Add some music to playlist');
|
||||
$('#player .loaded, #player .played').width(0);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
Loading…
Reference in New Issue