From f8e3b572c858d68b48ef2ed9ba8efd5d1c6be8a5 Mon Sep 17 00:00:00 2001 From: Daniel Calviño Sánchez Date: Wed, 18 Apr 2018 17:03:45 +0200 Subject: Remove no longer needed escaping of special characters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- core/js/sharedialogshareelistview.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core/js/sharedialogshareelistview.js') 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'); -- cgit v1.2.3