diff options
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 723a22f24e8..f9916b647b2 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -194,6 +194,7 @@ window.FileList = { this.$fileList.find('td.filename input:checkbox').prop('checked', checked) .closest('tr').toggleClass('selected', checked); this._selectedFiles = {}; + this._selectionSummary.clear(); if (checked) { for (var i = 0; i < this.files.length; i++) { var fileData = this.files[i]; @@ -201,9 +202,6 @@ window.FileList = { this._selectionSummary.add(fileData); } } - else { - this._selectionSummary.clear(); - } this.updateSelectionSummary(); }, |