1
0
Fork 0

All tracks deleting correctly. Fixes #64

This commit is contained in:
magnolia-fan 2011-06-26 14:33:10 +04:00
parent 263f6e0ab0
commit 08b04b781d
1 changed files with 4 additions and 10 deletions

View File

@ -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);
}
});
});