Skip to content
Prev Previous commit
Next Next commit
Prevents the selection of encrypted folder on next page load
  • Loading branch information
TSI-kavitasonawane authored and PVince81 committed Nov 23, 2022
commit 323b4a6df1325c2fecd5639a25cb76d48b240d0a
2 changes: 1 addition & 1 deletion apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},

Expand Down Expand Up @@ -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');
Expand Down