mirror of
https://github.com/google/nomulus.git
synced 2025-06-21 03:40:47 +02:00
Set focus correctly in lock modal (#499)
This commit is contained in:
parent
e8e452ca39
commit
7be06094a4
1 changed files with 5 additions and 1 deletions
|
@ -117,7 +117,11 @@ registry.registrar.RegistryLock.prototype.showModal_ = function(targetElement, d
|
|||
var modalElement = goog.soy.renderAsElement(
|
||||
registry.soy.registrar.registrylock.confirmModal, {domain: domain, isLock: isLock});
|
||||
parentElement.prepend(modalElement);
|
||||
goog.dom.getRequiredElement('domain-lock-password').focus();
|
||||
if (domain == null) {
|
||||
goog.dom.getRequiredElement('domain-lock-input-value').focus();
|
||||
} else {
|
||||
goog.dom.getRequiredElement('domain-lock-password').focus();
|
||||
}
|
||||
// delete the modal when the user clicks the cancel button
|
||||
goog.events.listen(
|
||||
goog.dom.getRequiredElement('domain-lock-cancel'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue