aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorkavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>2022-12-01 11:43:24 +0530
committerkavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>2022-12-01 11:43:44 +0530
commit4d0b80d35e871f7b2c19652bf3b23b08f6f53184 (patch)
treee97b6648133b0713242978723fd8196b11f15efb /apps/files/js
parent0253a0b2d0f48320c75257e6c3b5474878c5dccd (diff)
downloadnextcloud-server-4d0b80d35e871f7b2c19652bf3b23b08f6f53184.tar.gz
nextcloud-server-4d0b80d35e871f7b2c19652bf3b23b08f6f53184.zip
Prevents the selection of encrypted files when scroll the page
Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
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');
}