added afterrender listener to Sonia.rest.EditForm for setting focus

This commit is contained in:
Sebastian Sdorra
2010-09-07 18:34:26 +02:00
parent df9ba08b54
commit 049390be14
3 changed files with 15 additions and 9 deletions

View File

@@ -16,15 +16,9 @@ Sonia.group.EditForm = new Ext.extend(Sonia.rest.EditForm, {
var config = {
title: 'Edit Group',
listeners: {
afterrender: function(){
if ( ! update ){
Ext.getCmp('nameField').focus(true, 500);
}
}
},
focusField: 'groupName',
items:[{
id: 'nameField',
id: 'groupName',
fieldLabel:'Name',
name:'name',
anchor: '100%',