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