mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 17:56:17 +01:00
enable form validation
This commit is contained in:
@@ -170,6 +170,7 @@ Sonia.repository.FormPanel = Ext.extend(Ext.FormPanel,{
|
||||
labelWidth: 100,
|
||||
defaults: {width: 240},
|
||||
autoScroll: true,
|
||||
monitorValid: true,
|
||||
defaultType: 'textfield',
|
||||
items:[
|
||||
{id: 'repositoryName', fieldLabel: 'Name', name: 'name', readOnly: update, allowBlank: false},
|
||||
@@ -195,7 +196,7 @@ Sonia.repository.FormPanel = Ext.extend(Ext.FormPanel,{
|
||||
],
|
||||
buttonAlign: 'center',
|
||||
buttons: [
|
||||
{text: 'Ok', scope: this, handler: this.submit},
|
||||
{text: 'Ok', formBind: true, scope: this, handler: this.submit},
|
||||
{text: 'Cancel', scope: this, handler: this.reset}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user