summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-04-18 17:03:45 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-04-18 17:03:45 +0200
commitf8e3b572c858d68b48ef2ed9ba8efd5d1c6be8a5 (patch)
tree234c503a7dc2b714021524ace6a7bfdeb34ad1d9
parent14665860331fe6796465391325ec2085a91bfa3f (diff)
downloadnextcloud-server-f8e3b572c858d68b48ef2ed9ba8efd5d1c6be8a5.tar.gz
nextcloud-server-f8e3b572c858d68b48ef2ed9ba8efd5d1c6be8a5.zip
Remove no longer needed escaping of special characters
The escaping of special characters was needed when the ids of the permission checkboxes for shares were based on the "shareWith" field. Since they are based on the "shareId" field the escaping is no longer needed, as the "sharedId" is expected to always contain compatible characters. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r--core/js/sharedialogshareelistview.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index 6725f625be4..1e873a7208e 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -383,9 +383,7 @@
var _this = this;
this.getShareeList().forEach(function(sharee) {
- var checkBoxId = 'canEdit-' + _this.cid + '-' + sharee.shareId;
- checkBoxId = '#' + checkBoxId.replace( /(:|\.|\[|\]|,|=|@|\/)/g, "\\$1");
- var $edit = _this.$(checkBoxId);
+ var $edit = _this.$('#canEdit-' + _this.cid + '-' + sharee.shareId);
if($edit.length === 1) {
$edit.prop('checked', sharee.editPermissionState === 'checked');
$edit.prop('indeterminate', sharee.editPermissionState === 'indeterminate');