DataObjects/Core_domain.php
[Pman.Core] / Pman.Dialog.CorePersonContact.js
index 280cc4f..a90c347 100644 (file)
@@ -32,10 +32,10 @@ Pman.Dialog.CorePersonContact = {
             xns: Roo,
             closable : false,
             collapsible : false,
-            height : 350,
+            height : 290,
             resizable : false,
             title : "Edit / Create Contact Details",
-            width : 500,
+            width : 450,
             items : [
                 {
                     xtype: 'ContentPanel',
@@ -164,11 +164,11 @@ Pman.Dialog.CorePersonContact = {
                                         },
                                         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',
@@ -224,7 +224,8 @@ Pman.Dialog.CorePersonContact = {
                                     xns: Roo.form,
                                     fieldLabel : 'Name',
                                     name : 'name',
-                                    width : 300
+                                    width : 300,
+                                    allowBlank : true
                                 },
                                 {
                                     xtype: 'TextField',
@@ -250,6 +251,7 @@ Pman.Dialog.CorePersonContact = {
                                 {
                                     xtype: 'TextField',
                                     xns: Roo.form,
+                                    allowBlank : false,
                                     fieldLabel : 'Email',
                                     name : 'email',
                                     width : 200