xns: Roo,
closable : false,
collapsible : false,
- height : 350,
+ height : 290,
resizable : false,
title : "Edit / Create Contact Details",
- width : 500,
+ width : 450,
items : [
{
xtype: 'ContentPanel',
},
beforequery : function (combo, query, forceAll, cancel, e)
{
- var coid = _this.form.findField('company_id').getValue();
+ var coid = _this.form.findField('company_id').getValue();
if (coid < 1 ) {
- Ext.MessageBox.alert("Error", "Select An Company First");
- return false;
- }
+ Ext.MessageBox.alert("Error", "Select An Company First");
+ return false;
+ }
}
},
allowBlank : 'false',
xns: Roo.form,
fieldLabel : 'Name',
name : 'name',
- width : 300
+ width : 300,
+ allowBlank : true
},
{
xtype: 'TextField',
{
xtype: 'TextField',
xns: Roo.form,
+ allowBlank : false,
fieldLabel : 'Email',
name : 'email',
width : 200