From 4cccb99e09c721d49b8b0cd73b849d9cc0038abf Mon Sep 17 00:00:00 2001 From: "kavita.sonawane@t-systems.com" Date: Thu, 17 Nov 2022 11:31:07 +0530 Subject: [PATCH] Prevents the selection of encrypted folder on scroll page Signed-off-by: kavita.sonawane@t-systems.com --- apps/files/js/filelist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index de26f9c782b..09711f7547d 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -993,7 +993,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) { @@ -1288,6 +1288,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); } }, -- 2.39.5