CC-1929: login page: username should get focus on loading

- done
This commit is contained in:
James 2011-09-13 15:29:01 -04:00
parent a84a28d556
commit ebf5c75af3
2 changed files with 17 additions and 11 deletions

View File

@ -10,20 +10,23 @@ class LoginController extends Zend_Controller_Action
public function indexAction()
{
if(Zend_Auth::getInstance()->hasIdentity())
{
$this->_redirect('Nowplaying');
}
if(Zend_Auth::getInstance()->hasIdentity())
{
$this->_redirect('Nowplaying');
}
//uses separate layout without a navigation.
$this->_helper->layout->setLayout('login');
$request = $this->getRequest();
$baseUrl = $request->getBaseUrl();
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/login/login.js','text/javascript');
//uses separate layout without a navigation.
$this->_helper->layout->setLayout('login');
$request = $this->getRequest();
$form = new Application_Form_Login();
$message = "Please enter your user name and password";
$message = "Please enter your user name and password";
if($request->isPost())
{
// if the post contains recaptcha field, which means form had recaptcha field.

View File

@ -0,0 +1,3 @@
$(document).ready(function(){
$("#username").focus()
})