mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 09:25:43 +01:00
added afterrender listener to Sonia.rest.EditForm for setting focus
This commit is contained in:
@@ -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%',
|
||||
|
||||
Reference in New Issue
Block a user