fix delete button not always disapearing

This commit is contained in:
Robin Appelman 2012-04-16 13:11:41 +02:00
parent cfd0140e2f
commit 6af808edc9
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ FileActions={
}, },
display:function(parent){ display:function(parent){
FileActions.currentFile=parent; FileActions.currentFile=parent;
$('#fileList .action').remove(); $('#fileList span.fileactions, #fileList td.date a.action').remove();
var actions=FileActions.get(FileActions.getCurrentMimeType(),FileActions.getCurrentType()); var actions=FileActions.get(FileActions.getCurrentMimeType(),FileActions.getCurrentType());
var file=FileActions.getCurrentFile(); var file=FileActions.getCurrentFile();
if($('tr').filterAttr('data-file',file).data('renaming')){ if($('tr').filterAttr('data-file',file).data('renaming')){
@ -113,7 +113,7 @@ FileActions={
return false; return false;
}, },
hide:function(){ hide:function(){
$('#fileList span.fileactions').fadeOut(200,function(){ $('#fileList span.fileactions, #fileList td.date a.action').fadeOut(200,function(){
$(this).remove(); $(this).remove();
}); });
}, },