Prevents the selection of encrypted folder on next page load

Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
This commit is contained in:
kavita.sonawane@t-systems.com 2022-11-18 14:46:50 +05:30 committed by Vincent Petry
parent 4cccb99e09
commit 323b4a6df1
No known key found for this signature in database
GPG key ID: E055D6A4D513575C

View file

@ -1288,7 +1288,6 @@
_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);
}
},
@ -1439,6 +1438,7 @@
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');