Add focus on pending popover opening

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-11-06 10:31:48 +01:00
parent 11b6c22595
commit eeeb19079f
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
<div class="popovermenu open menu">
<div class="popovermenu open menu pending">
<ul>
{{#if isPasswordEnforced}}
<li>

View File

@ -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, {

View File

@ -271,7 +271,7 @@ templates['sharedialoglinkshareview_popover_menu_pending'] = template({"1":funct
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
var stack1;
return "<div class=\"popovermenu open menu\">\n <ul>\n"
return "<div class=\"popovermenu open menu pending\">\n <ul>\n"
+ ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.isPasswordEnforced : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ " </ul>\n</div>\n";
},"useData":true});