diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-06-20 22:37:59 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-06-20 22:37:59 +0200 |
commit | ae6bbbdfb8ccd773badaa81d9665a7855fef517a (patch) | |
tree | 97315a9652de5b9b838abe15911fb4e03c05ed82 /apps/files | |
parent | 5c555e6b4b729bb743306328f0c10ac739a1856c (diff) | |
download | nextcloud-server-ae6bbbdfb8ccd773badaa81d9665a7855fef517a.tar.gz nextcloud-server-ae6bbbdfb8ccd773badaa81d9665a7855fef517a.zip |
Fix folder selection
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/js/filelist.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 0e525f6c7e3..59655dcd8b5 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -756,9 +756,10 @@ for (var i = 0; i < this.files.length; i++) { // a search will automatically hide the unwanted rows // let's only select the matches - var fileRow = this.$fileList.find('[data-id=' + i + ']'); var fileData = this.files[i]; + var fileRow = this.$fileList.find('[data-id=' + fileData.id + ']'); // do not select already selected ones + console.log(fileRow, this._selectedFiles[fileData.id]); if (!fileRow.hasClass('hidden') && _.isUndefined(this._selectedFiles[fileData.id])) { this._selectedFiles[fileData.id] = fileData; this._selectionSummary.add(fileData); @@ -777,7 +778,7 @@ if (!_.isUndefined(self._selectedFiles[id])) { // a search will automatically hide the unwanted rows // let's only select the matches - var fileData = self.files[id]; + var fileData = self._selectedFiles[id]; delete self._selectedFiles[fileData.id]; self._selectionSummary.remove(fileData); } |