only show actions for selected file if there are selected files

This commit is contained in:
Robin Appelman 2011-07-21 23:26:08 +02:00
parent bc40532109
commit aa335f57d6
1 changed files with 2 additions and 0 deletions

View File

@ -293,7 +293,9 @@ function procesSelection(){
if(selectedFiles.length==0 && selectedFolders.length==0){
$('#headerName>span.name').text('Name');
$('#headerSize').text('Size (MB)');
$('#selectedActions').hide();
}else{
$('#selectedActions').show();
var totalSize=0;
selectedFiles.each(function(){
totalSize+=parseInt($(this).attr('data-size'));