]> source.dussan.org Git - nextcloud-server.git/commitdiff
Prevents the selection of encrypted folder on scroll page
authorkavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
Thu, 17 Nov 2022 06:01:07 +0000 (11:31 +0530)
committerVincent Petry <vincent@nextcloud.com>
Wed, 23 Nov 2022 09:29:20 +0000 (10:29 +0100)
Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
apps/files/js/filelist.js

index de26f9c782b0f7a51dc4a54622fe4f621f6f5f5b..09711f7547db83a590a30a65d33552ed56760c32 100644 (file)
                        // 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) {
                _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); 
                        }
                },