#636 and #861 Set the focus on User Name in iTop Login Form

SVN:trunk[3197]
This commit is contained in:
Romain Quetiez
2014-06-05 09:48:59 +00:00
parent 44aff84dfa
commit d07ca49e53

View File

@@ -147,6 +147,8 @@ class LoginWebPage extends NiceWebPage
}
$this->add("</table>\n");
$this->add("<input type=\"hidden\" name=\"loginop\" value=\"login\" />\n");
$this->add_ready_script('$("#user").focus();');
// Keep the OTHER parameters posted
foreach($_POST as $sPostedKey => $postedValue)
@@ -203,6 +205,8 @@ class LoginWebPage extends NiceWebPage
$this->add("<input type=\"hidden\" name=\"loginop\" value=\"forgot_pwd_go\" />\n");
$this->add("</form>\n");
$this->add("</div>\n");
$this->add_ready_script('$("#user").focus();');
}
protected function ForgotPwdGo()