aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2016-11-29 15:44:43 +0100
committerBjoern Schiessle <bjoern@schiessle.org>2016-12-08 10:29:51 +0100
commit39c2d9e6636b525a3166ce2826d7d282de169c93 (patch)
tree06e787f7492a1e60573e0898fdfd87849b5860b8 /core/js
parent2514176e41c19e27de7abaffc5f86995b7d683bb (diff)
downloadnextcloud-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.js5
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;