From eeeb19079f3c6a8893f451ca8abb2f5d585390ed Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Tue, 6 Nov 2018 10:31:48 +0100 Subject: Add focus on pending popover opening MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/js/sharedialoglinkshareview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/js/sharedialoglinkshareview.js') diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js index 5dc7d706720..4f4db0eec79 100644 --- a/core/js/sharedialoglinkshareview.js +++ b/core/js/sharedialoglinkshareview.js @@ -229,8 +229,8 @@ // We need a password before the share creation if (isPasswordEnforced && !this.showPending && this.password === '') { this.showPending = shareId; - this.render(); - $li.find('#enforcedPassText').focus(); + var self = this.render(); + self.$el.find('.pending #enforcedPassText').focus(); } else { // else, we have a password or it is not enforced $.when(this.model.saveLinkShare(shareData, { -- cgit v1.2.3