aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorkavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>2022-11-17 11:31:07 +0530
committerkavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>2022-11-22 15:56:10 +0530
commit44c1049e0ce7bdc4532886a2e5fd89101baf49d3 (patch)
treed1d019d2292bc9aae7230a9dc489aee84c672d43 /apps/files/js
parente4de88386a01cb343b9b737e63c899a77f6490ba (diff)
downloadnextcloud-server-44c1049e0ce7bdc4532886a2e5fd89101baf49d3.tar.gz
nextcloud-server-44c1049e0ce7bdc4532886a2e5fd89101baf49d3.zip
Prevents the selection of encrypted folder on scroll 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.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 75d7603022b..38d096acccc 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -976,7 +976,7 @@
// Select only visible checkboxes to filter out unmatched file in search
this.$fileList.find('td.selection > .selectCheckBox:visible').prop('checked', checked)
.closest('tr').toggleClass('selected', checked);
- //For prevents the selection of encrypted folders when clicking on the "Select all" checkbox
+ // For prevents the selection of encrypted folders when clicking on the "Select all" checkbox
this.$fileList.find('tr[data-e2eencrypted="true"]').find('td.selection > .selectCheckBox:visible').prop('checked', false).closest('tr').toggleClass('selected', false);
if (checked) {
@@ -1271,6 +1271,7 @@
_onScroll: function(e) {
if (this.$container.scrollTop() + this.$container.height() > this.$el.height() - 300) {
this._nextPage(true);
+ this.$fileList.find('tr[data-e2eencrypted="true"]').find('td.selection > .selectCheckBox:visible').prop('checked', false).closest('tr').toggleClass('selected', false);
}
},