From: Alan Knowles Date: Fri, 17 Sep 2010 10:56:35 +0000 (+0800) Subject: Pman.Dialog.CorePersonContact.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=34af066ed708ba244dd91a167673ceb2d594328e Pman.Dialog.CorePersonContact.bjs --- diff --git a/Pman.Dialog.CorePersonContact.bjs b/Pman.Dialog.CorePersonContact.bjs index ea6279e7..fe3f401d 100644 --- a/Pman.Dialog.CorePersonContact.bjs +++ b/Pman.Dialog.CorePersonContact.bjs @@ -95,7 +95,7 @@ }, { "listeners": { - "add": "function (combo)\n{\n var coid = _this.form.findField('company_id').getValue();\n if (!coid ) {\n \n Ext.MessageBox.alert(\"Error\", \"Select An Company First\");\n return false;\n\n }\n Pman.Dialog.Office.show(cfg, function(data) {\n _this.form.setValues({\n office_id_name : data.name,\n company_id : data.id\n });\n }); \n \n \n}" + "add": "function (combo)\n{\n var coid = _this.form.findField('company_id').getValue();\n if (!coid ) {\n \n Ext.MessageBox.alert(\"Error\", \"Select An Company First\");\n return false;\n\n }\n Pman.Dialog.Office.show(cfg, function(data) {\n _this.form.setValues({\n office_id_name : data.name,\n office_id : data.id\n });\n }); \n \n \n}" }, "allowBlank": "false", "displayField": "name",