From: John Molakvoæ (skjnldsv) Date: Fri, 16 Nov 2018 09:58:46 +0000 (+0100) Subject: Fix wrong share popover opening on share link X-Git-Tag: v14.0.4RC2~9^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5f1f9952dc4ac5687953449a7267a16018cf3c91;p=nextcloud-server.git Fix wrong share popover opening on share link Signed-off-by: John Molakvoæ (skjnldsv) --- 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) {