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>
This commit is contained in:
Daniel Calviño Sánchez 2018-04-18 17:03:45 +02:00
parent 0734325dda
commit 2b5d933b63
1 changed files with 1 additions and 3 deletions

View File

@ -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);
}