enter in password field presses button

This commit is contained in:
Roland Gruber 2014-09-21 19:28:56 +00:00
parent 3d8c0e7dcc
commit 8df830d281
1 changed files with 1 additions and 0 deletions

View File

@ -290,6 +290,7 @@ class imapAccess extends baseModule {
$passwordInput = new htmlTableExtendedInputField(_("Password of IMAP admin user"), 'ImapAdminPassword', '', 'ImapAdminPassword_Sess');
$passwordInput->setIsPassword(true);
$passwordInput->setRequired(true);
$passwordInput->setOnKeyPress('SubmitForm(\'enterPasswordButton\', event);');
$return->addElement($passwordInput, true);
$return->addElement(new htmlSpacer(null, '10px'), true);
$return->addElement(new htmlButton('enterPasswordButton', _('Ok')));