From: Robin Appelman Date: Thu, 21 Jul 2011 21:26:08 +0000 (+0200) Subject: only show actions for selected file if there are selected files X-Git-Tag: v3.0~267^2~364^2~21^2~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aa335f57d627e42b14e350f2bdf43112f1f0f2ef;p=nextcloud-server.git only show actions for selected file if there are selected files --- diff --git a/files/js/files.js b/files/js/files.js index 4a3de095509..b0970233739 100644 --- a/files/js/files.js +++ b/files/js/files.js @@ -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'));