Browse Source

Add focus on pending popover opening

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
tags/v15.0.0beta1
John Molakvoæ (skjnldsv) 5 years ago
parent
commit
eeeb19079f
No account linked to committer's email address

+ 1
- 1
core/js/share/sharedialoglinkshareview_popover_menu_pending.handlebars View File

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

+ 2
- 2
core/js/sharedialoglinkshareview.js 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, {

+ 1
- 1
core/js/sharetemplates.js 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});

Loading…
Cancel
Save