Commits

Sebastian Sdorra  committed 95dc843

set focus on username field

  • Participants
  • Parent commits a186b9c

Comments (0)

Files changed (1)

File scm-webapp/src/main/webapp/resources/js/sonia.login.js

   initComponent: function(){
 
     var config = {
-      labelWidth:80,
+      labelWidth: 80,
       url: restUrl + "authentication.json",
-      frame:true,
-      title:'Please Login',
-      defaultType:'textfield',
-      monitorValid:true,
+      frame: true,
+      title: 'Please Login',
+      defaultType: 'textfield',
+      monitorValid: true,
+      listeners: {
+        afterrender: function(){
+          Ext.getCmp('username').focus(true, 500);
+        }
+      },
       items:[{
         id: 'username',
         fieldLabel:'Username',