mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
set focus to name field
This commit is contained in:
@@ -12,14 +12,24 @@ Sonia.group.EditForm = new Ext.extend(Sonia.rest.EditForm, {
|
||||
fields: [ 'name' ]
|
||||
});
|
||||
|
||||
var update = this.data != null;
|
||||
|
||||
var config = {
|
||||
title: 'Edit Group',
|
||||
listeners: {
|
||||
afterrender: function(){
|
||||
if ( ! update ){
|
||||
Ext.getCmp('nameField').focus(true, 500);
|
||||
}
|
||||
}
|
||||
},
|
||||
items:[{
|
||||
id: 'nameField',
|
||||
fieldLabel:'Name',
|
||||
name:'name',
|
||||
anchor: '100%',
|
||||
allowBlank: false,
|
||||
readOnly: this.data != null
|
||||
readOnly: update
|
||||
},{
|
||||
fieldLabel: 'Members',
|
||||
xtype: 'fieldset',
|
||||
|
||||
Reference in New Issue
Block a user