CC-1929: login page: username should get focus on loading
- done
This commit is contained in:
parent
a84a28d556
commit
ebf5c75af3
2 changed files with 17 additions and 11 deletions
|
@ -19,6 +19,9 @@ class LoginController extends Zend_Controller_Action
|
|||
$this->_helper->layout->setLayout('login');
|
||||
|
||||
$request = $this->getRequest();
|
||||
$baseUrl = $request->getBaseUrl();
|
||||
|
||||
$this->view->headScript()->appendFile($baseUrl.'/js/airtime/login/login.js','text/javascript');
|
||||
|
||||
$form = new Application_Form_Login();
|
||||
|
||||
|
|
3
airtime_mvc/public/js/airtime/login/login.js
Normal file
3
airtime_mvc/public/js/airtime/login/login.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
$(document).ready(function(){
|
||||
$("#username").focus()
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue