From 5290c4efd9debd505756032ce09edc766243acca Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 17 Sep 2010 18:55:30 +0800 Subject: [PATCH] Pman.Dialog.CorePersonContact.js --- Pman.Dialog.CorePersonContact.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Pman.Dialog.CorePersonContact.js b/Pman.Dialog.CorePersonContact.js index 3608f19a..6b104323 100644 --- a/Pman.Dialog.CorePersonContact.js +++ b/Pman.Dialog.CorePersonContact.js @@ -143,6 +143,13 @@ Pman.Dialog.CorePersonContact = { { xtype: 'ComboBox', xns: Roo.form, + listeners : { + add : function (combo) + { + var coid = _this.form.findField('company_id').getValue(); + o.params.company_id = coid; + } + }, allowBlank : 'false', displayField : 'name', editable : 'false', @@ -163,12 +170,6 @@ Pman.Dialog.CorePersonContact = { typeAhead : true, valueField : 'id', width : 300, - listeners : { - add : function (combo) - { - - } - }, store : { xtype: 'Store', xns: Roo.data, -- 2.39.2