diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-04-18 17:03:45 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-04-18 17:03:45 +0200 |
commit | f8e3b572c858d68b48ef2ed9ba8efd5d1c6be8a5 (patch) | |
tree | 234c503a7dc2b714021524ace6a7bfdeb34ad1d9 /core/js/sharedialogshareelistview.js | |
parent | 14665860331fe6796465391325ec2085a91bfa3f (diff) | |
download | nextcloud-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>
Diffstat (limited to 'core/js/sharedialogshareelistview.js')
-rw-r--r-- | core/js/sharedialogshareelistview.js | 4 |
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'); |