Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix wrong share popover opening on share link
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
  • Loading branch information
skjnldsv committed Nov 16, 2018
commit 5f1f9952dc4ac5687953449a7267a16018cf3c91
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