Merge pull request #12482 from nextcloud/share-menu-click-fix

Fix wrong share popover opening on share link
This commit is contained in:
Morris Jobke 2018-11-16 14:18:45 +01:00 committed by GitHub
commit a79c7c7b05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -294,14 +294,12 @@
$loading.removeClass('hidden');
// this will create it
this.model.saveLinkShare();
$('.share-menu .icon-more').click();
$('.share-menu .icon-more + .popovermenu .clipboardButton').click();
} else {
// force the rendering of the menu
this.showPending = true;
this.render()
$('.share-menu .icon-more').click();
$('.share-menu .icon-more + .popovermenu input:eq(1)').focus()
this.render();
$('#shareLink .share-menu .icon-more').click();
$('#shareLink .share-menu .icon-more + .popovermenu input:eq(1)').focus();
}
} else {
if (this.model.get('linkShare').isLinkShare) {