diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-04-18 18:03:45 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-05-10 22:40:36 +0300 |
commit | 2b5d933b63ad7b1e5401c146724d7694ed28f858 (patch) | |
tree | 8a61102780cc6d898ac23811443d8ade739e4bd0 /core | |
parent | 0734325dda691f39504a5da0a6f1626192ab9571 (diff) |
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')
-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 a88c38fb4ec..6e5248e83eb 100644 --- a/core/js/sharedialogshareelistview.js +++ b/core/js/sharedialogshareelistview.js @@ -380,9 +380,7 @@ var $li = this.$('li[data-share-id=' + permissionChangeShareId + ']'); $li.find('.sharingOptionsGroup .popovermenu').replaceWith(this.popoverMenuTemplate(sharee)); - var checkBoxId = 'canEdit-' + this.cid + '-' + sharee.shareId; - checkBoxId = '#' + checkBoxId.replace( /(:|\.|\[|\]|,|=|@)/g, "\\$1"); - var $edit = $li.parent().find(checkBoxId); + var $edit = $li.parent().find('#canEdit-' + this.cid + '-' + sharee.shareId); if($edit.length === 1) { $edit.prop('checked', sharee.hasEditPermission); } |