summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorHasso Tepper <hasso@zone.ee>2015-08-17 15:28:55 +0300
committerHasso Tepper <hasso@zone.ee>2015-08-17 15:28:55 +0300
commit72799ffba295759dd4105c9fb038263ed05c3ab8 (patch)
tree6b3e25f1089e97b975da520e2566dcab2a1470a7 /apps
parent69c550ce51e845b93c351fc1ab120c3ff7654513 (diff)
downloadnextcloud-server-72799ffba295759dd4105c9fb038263ed05c3ab8.tar.gz
nextcloud-server-72799ffba295759dd4105c9fb038263ed05c3ab8.zip
Move selectionVars into if statement
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js9
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;