diff options
author | Hasso Tepper <hasso@zone.ee> | 2015-08-17 15:28:55 +0300 |
---|---|---|
committer | Hasso Tepper <hasso@zone.ee> | 2015-08-17 15:28:55 +0300 |
commit | 72799ffba295759dd4105c9fb038263ed05c3ab8 (patch) | |
tree | 6b3e25f1089e97b975da520e2566dcab2a1470a7 /apps | |
parent | 69c550ce51e845b93c351fc1ab120c3ff7654513 (diff) | |
download | nextcloud-server-72799ffba295759dd4105c9fb038263ed05c3ab8.tar.gz nextcloud-server-72799ffba295759dd4105c9fb038263ed05c3ab8.zip |
Move selectionVars into if statement
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index a47dc28e9cd..6fb5fcc35b7 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1945,12 +1945,11 @@ var directoryInfo = n('files', '%n folder', '%n folders', summary.totalDirs); var fileInfo = n('files', '%n file', '%n files', summary.totalFiles); - var selectionVars = { - dirs: directoryInfo, - files: fileInfo - }; - if (summary.totalDirs > 0 && summary.totalFiles > 0) { + var selectionVars = { + dirs: directoryInfo, + files: fileInfo + }; var selection = t('files', '{dirs} and {files}', selectionVars); } else if (summary.totalDirs > 0) { var selection = directoryInfo; |