Skip to content

Commit 93e34fb

Browse files
authored
Merge pull request #7211 from nextcloud/fix-5916
only replace permission popupmenu
2 parents 96b15ce + a1d4ac6 commit 93e34fb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/js/sharedialogshareelistview.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@
376376
var sharee = this.getShareeObject(shareWithIndex);
377377
$.extend(sharee, this.getShareProperties());
378378
var $li = this.$('li[data-share-id=' + permissionChangeShareId + ']');
379-
$li.find('.popovermenu').replaceWith(this.popoverMenuTemplate(sharee));
379+
$li.find('.sharingOptionsGroup .popovermenu').replaceWith(this.popoverMenuTemplate(sharee));
380380

381381
var checkBoxId = 'canEdit-' + this.cid + '-' + sharee.shareWith;
382382
checkBoxId = '#' + checkBoxId.replace( /(:|\.|\[|\]|,|=|@)/g, "\\$1");
@@ -403,12 +403,12 @@
403403
}
404404
}
405405
});
406-
if (this._menuOpen != false) {
406+
if (this._menuOpen !== false) {
407407
// Open menu again if it was opened before
408408
var shareId = parseInt(this._menuOpen, 10);
409409
if(!_.isNaN(shareId)) {
410410
var liSelector = 'li[data-share-id=' + shareId + ']';
411-
OC.showMenu(null, this.$(liSelector + '.sharingOptionsGroup .popovermenu'));
411+
OC.showMenu(null, this.$(liSelector + ' .sharingOptionsGroup .popovermenu'));
412412
}
413413
}
414414

0 commit comments

Comments
 (0)