listeners : {
click : function (_self, e)
{
- // do some checks?
-
if(!_this.form.isValid()){
-
+ Roo.MessageBox.alert('Error', 'Please Correct all the errors in red');
+ return;
}
+ new Pman.Request({
+ url : baseURL + '/Roo/Core_enum.php',
+ method : 'POST',
+ params : {
+ id : _this.form.findField('id').getValue() * 1,
+ name : _this.form.findField('name').getValue(),
+ _check_name : 1
+ },
+ success : function(res) {
+
+ }
+ });
+
+ return;
+
_this.dialog.el.mask("Saving");
_this.form.doAction("submit");
},
{
xtype : 'ComboBox',
+ allowBlank : false,
alwaysQuery : true,
displayField : 'display_name',
emptyText : _this._strings['023a5dfa857c4aa0156e6685231a1dbd'] /* Select Type */,
},
{
xtype : 'TextField',
- allowBlank : true,
+ allowBlank : false,
fieldLabel : _this._strings['e7b47c58815acf1d3afa59a84b5db7fb'] /* Company Name */,
name : 'name',
qtip : _this._strings['4ef6052d74436756f08e95fd63949653'] /* Enter Company Name */,