Skip to content

Commit

Permalink
Merge pull request #12482 from nextcloud/share-menu-click-fix
Browse files Browse the repository at this point in the history
Fix wrong share popover opening on share link
  • Loading branch information
MorrisJobke authored Nov 16, 2018
2 parents cd196f3 + 5f1f995 commit a79c7c7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/js/sharedialoglinkshareview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a79c7c7

Please sign in to comment.