]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix wrong share popover opening on share link 12482/head
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Fri, 16 Nov 2018 09:58:46 +0000 (10:58 +0100)
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Fri, 16 Nov 2018 09:58:48 +0000 (10:58 +0100)
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
core/js/sharedialoglinkshareview.js

index 736404e26817e210f5d7fc3b957d955bcaf857c9..3338b70550eda2391a6476d0f681f7203f77fd8e 100644 (file)
                                        $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) {