]> source.dussan.org Git - nextcloud-server.git/commitdiff
Prevents the selection of encrypted folder on next page load
authorkavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
Fri, 18 Nov 2022 09:16:50 +0000 (14:46 +0530)
committerVincent Petry <vincent@nextcloud.com>
Wed, 23 Nov 2022 09:29:24 +0000 (10:29 +0100)
Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
apps/files/js/filelist.js

index 09711f7547db83a590a30a65d33552ed56760c32..215a4509be3eaac33ad4b490d8c4d3329cbac99a 100644 (file)
                _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); 
                        }
                },
 
                                        hidden = false;
                                }
                                tr = this._renderRow(fileData, {updateSummary: false, silent: true, hidden: hidden});
+                               this.$fileList.find('tr[data-e2eencrypted="true"]').find('td.selection > .selectCheckBox:visible').prop('checked', false).closest('tr').toggleClass('selected', false); 
                                this.$fileList.append(tr);
                                if (isAllSelected || this._selectedFiles[fileData.id]) {
                                        tr.addClass('selected');