From 386e4cbd6a890aa826b402b6f1ffa063bd1d861c Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Fri, 5 Nov 2010 14:33:35 +0100 Subject: [PATCH] enable form validation --- scm-webapp/src/main/webapp/resources/js/sonia.repository.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scm-webapp/src/main/webapp/resources/js/sonia.repository.js b/scm-webapp/src/main/webapp/resources/js/sonia.repository.js index 631bc92811..a8e9bbd797 100644 --- a/scm-webapp/src/main/webapp/resources/js/sonia.repository.js +++ b/scm-webapp/src/main/webapp/resources/js/sonia.repository.js @@ -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} ] };