summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>2022-11-15 11:27:46 +0530
committerkavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>2022-11-22 15:56:09 +0530
commit64f409e8abaa8522fff49ecc854aec5721e41aed (patch)
treecb16b8d1f1539bdcde1d8a6391ffde4e27168fed
parentccb30e7825dd0ff163613f8db9f6558ab33c8592 (diff)
downloadnextcloud-server-64f409e8abaa8522fff49ecc854aec5721e41aed.tar.gz
nextcloud-server-64f409e8abaa8522fff49ecc854aec5721e41aed.zip
Filelist:-Deselecting all files checkboxes within cells of encrypted folder
Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
-rw-r--r--apps/files/js/filelist.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 7caed29baa3..46b63140b27 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -976,6 +976,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++) {
@@ -984,7 +985,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);
}