From: Alan Knowles Date: Fri, 17 Sep 2010 10:55:30 +0000 (+0800) Subject: Pman.Dialog.CorePersonContact.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=5290c4efd9debd505756032ce09edc766243acca Pman.Dialog.CorePersonContact.js --- 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,