diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-11-29 15:44:43 +0100 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-12-08 10:29:51 +0100 |
commit | 39c2d9e6636b525a3166ce2826d7d282de169c93 (patch) | |
tree | 06e787f7492a1e60573e0898fdfd87849b5860b8 /core/js | |
parent | 2514176e41c19e27de7abaffc5f86995b7d683bb (diff) | |
download | nextcloud-server-39c2d9e6636b525a3166ce2826d7d282de169c93.tar.gz nextcloud-server-39c2d9e6636b525a3166ce2826d7d282de169c93.zip |
also handle can-edit change
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/sharedialogshareelistview.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js index 56050d2d0c1..5bece6afc98 100644 --- a/core/js/sharedialogshareelistview.js +++ b/core/js/sharedialogshareelistview.js @@ -303,6 +303,11 @@ $.extend(sharee, this.getShareProperties()); var $li = this.$('li[data-share-id=' + permissionChangeShareId + ']'); $li.find('.popovermenu').replaceWith(this.popoverMenuTemplate(sharee)); + + var $edit = $li.parent().find('#canEdit-' + this.cid + '-' + sharee.shareWith); + if($edit.length == 1) { + $edit.prop('checked', sharee.hasEditPermission); + } } var _this = this; |