summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-12-06 10:30:10 +0100
committerGitHub <noreply@github.com>2022-12-06 10:30:10 +0100
commitdecf2b4524db76597c1375ddbd9a4d5d8f2e445b (patch)
tree030500f37e4c8156afaf02ebecfc349bae2130bd /apps/files/js
parent7730309aee48ab0d6c4591de93b4db50c147fde8 (diff)
parent4d0b80d35e871f7b2c19652bf3b23b08f6f53184 (diff)
downloadnextcloud-server-decf2b4524db76597c1375ddbd9a4d5d8f2e445b.tar.gz
nextcloud-server-decf2b4524db76597c1375ddbd9a4d5d8f2e445b.zip
Merge pull request #35521 from nextmcloud/nmcpr/1416-prevents-selection-of-encrypted-folders
[BUGFIX] Prevents the selection of encrypted files at the bottom of the list(before scrolling)
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 96273b325cb..1eed1902b29 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -1421,15 +1421,15 @@
hidden = false;
}
tr = this._renderRow(fileData, {updateSummary: false, silent: true, hidden: hidden});
- if (tr.attr('data-e2eencrypted') === 'true') {
- tr.toggleClass('selected', false);
- tr.find('td.selection > .selectCheckBox:visible').prop('checked', false);
- }
this.$fileList.append(tr);
if (isAllSelected || this._selectedFiles[fileData.id]) {
tr.addClass('selected');
tr.find('.selectCheckBox').prop('checked', true);
}
+ if (tr.attr('data-e2eencrypted') === 'true') {
+ tr.toggleClass('selected', false);
+ tr.find('td.selection > .selectCheckBox:visible').prop('checked', false);
+ }
if (animate) {
tr.addClass('appear transparent');
}