Add focus on pending popover opening
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
11b6c22595
commit
eeeb19079f
3 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
<div class="popovermenu open menu">
|
<div class="popovermenu open menu pending">
|
||||||
<ul>
|
<ul>
|
||||||
{{#if isPasswordEnforced}}
|
{{#if isPasswordEnforced}}
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -229,8 +229,8 @@
|
||||||
// We need a password before the share creation
|
// We need a password before the share creation
|
||||||
if (isPasswordEnforced && !this.showPending && this.password === '') {
|
if (isPasswordEnforced && !this.showPending && this.password === '') {
|
||||||
this.showPending = shareId;
|
this.showPending = shareId;
|
||||||
this.render();
|
var self = this.render();
|
||||||
$li.find('#enforcedPassText').focus();
|
self.$el.find('.pending #enforcedPassText').focus();
|
||||||
} else {
|
} else {
|
||||||
// else, we have a password or it is not enforced
|
// else, we have a password or it is not enforced
|
||||||
$.when(this.model.saveLinkShare(shareData, {
|
$.when(this.model.saveLinkShare(shareData, {
|
||||||
|
|
|
@ -271,7 +271,7 @@ templates['sharedialoglinkshareview_popover_menu_pending'] = template({"1":funct
|
||||||
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
|
},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
|
||||||
var stack1;
|
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 : "")
|
+ ((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";
|
+ " </ul>\n</div>\n";
|
||||||
},"useData":true});
|
},"useData":true});
|
||||||
|
|
Loading…
Reference in a new issue