Pman.Dialog.CorePersonContact.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 17 Sep 2010 10:57:05 +0000 (18:57 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 17 Sep 2010 10:57:05 +0000 (18:57 +0800)
Pman.Dialog.CorePersonContact.js

index 280cc4f..5fc9f2d 100644 (file)
@@ -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',