also handle can-edit change

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2016-11-29 15:44:43 +01:00 committed by Bjoern Schiessle
parent 2514176e41
commit 39c2d9e663
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 5 additions and 0 deletions

View File

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