diff options
author | Hasso Tepper <hasso.tepper@gmail.com> | 2015-08-18 10:31:02 +0300 |
---|---|---|
committer | Hasso Tepper <hasso@zone.ee> | 2015-08-18 10:34:30 +0300 |
commit | bbff530b65f38bc7eac071e5142d9f07bd3d9f94 (patch) | |
tree | c55a8203b7c936dbbb4cb151c755ae8605112815 /apps | |
parent | 97bc73ad49ac28030e76fbd817daaf71769d9b58 (diff) | |
download | nextcloud-server-bbff530b65f38bc7eac071e5142d9f07bd3d9f94.tar.gz nextcloud-server-bbff530b65f38bc7eac071e5142d9f07bd3d9f94.zip |
Move decaration to the beginning of the block
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 6fb5fcc35b7..e7becb01207 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1930,6 +1930,8 @@ updateSelectionSummary: function() { var summary = this._selectionSummary.summary; var canDelete; + var selection; + if (summary.totalFiles === 0 && summary.totalDirs === 0) { this.$el.find('#headerName a.name>span:first').text(t('files','Name')); this.$el.find('#headerSize a>span:first').text(t('files','Size')); @@ -1950,11 +1952,11 @@ dirs: directoryInfo, files: fileInfo }; - var selection = t('files', '{dirs} and {files}', selectionVars); + selection = t('files', '{dirs} and {files}', selectionVars); } else if (summary.totalDirs > 0) { - var selection = directoryInfo; + selection = directoryInfo; } else { - var selection = fileInfo; + selection = fileInfo; } this.$el.find('#headerName a.name>span:first').text(selection); |