From: kavita.sonawane@t-systems.com Date: Tue, 15 Nov 2022 05:57:46 +0000 (+0530) Subject: Filelist:-Deselecting all files checkboxes within cells of encrypted folder X-Git-Tag: v24.0.8rc1~11^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5f43439b262ca09223e463737cb77cf57eff9576;p=nextcloud-server.git Filelist:-Deselecting all files checkboxes within cells of encrypted folder Signed-off-by: kavita.sonawane@t-systems.com --- diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 3530cb66301..b74e5f5bd5b 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -993,6 +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); + this.$fileList.find('tr[data-e2eencrypted="true"]').find('td.selection > .selectCheckBox:visible').prop('checked', false).closest('tr').toggleClass('selected', false); if (checked) { for (var i = 0; i < this.files.length; i++) { @@ -1001,7 +1002,7 @@ var fileData = this.files[i]; var fileRow = this.$fileList.find('tr[data-id=' + fileData.id + ']'); // do not select already selected ones - if (!fileRow.hasClass('hidden') && _.isUndefined(this._selectedFiles[fileData.id])) { + if (!fileRow.hasClass('hidden') && _.isUndefined(this._selectedFiles[fileData.id]) && (!fileData.isEncrypted)) { this._selectedFiles[fileData.id] = fileData; this._selectionSummary.add(fileData); }