From 5f1f9952dc4ac5687953449a7267a16018cf3c91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Fri, 16 Nov 2018 10:58:46 +0100 Subject: [PATCH] Fix wrong share popover opening on share link MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/js/sharedialoglinkshareview.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index 736404e2681..3338b70550e 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -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) { -- 2.39.5