diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-04-10 20:07:02 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-04-28 14:55:01 +0200 |
commit | a15b68c10fa7401dc4b30a173c80084bf114dde9 (patch) | |
tree | ab679a3670992adfdbae4a732de9b2d013c1cdbf /apps/files/js/filelist.js | |
parent | c29e8b0bae8998ba55efd5f34f4c8d1e7034ffdc (diff) | |
download | nextcloud-server-a15b68c10fa7401dc4b30a173c80084bf114dde9.tar.gz nextcloud-server-a15b68c10fa7401dc4b30a173c80084bf114dde9.zip |
Fixed selection summary calculation issue
Diffstat (limited to 'apps/files/js/filelist.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(); }, |