From a76b130d30a8d2130a457716714e47fdd7b2920f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 17 Sep 2010 18:53:49 +0800 Subject: [PATCH] Pman.Dialog.CorePersonContact.js --- Pman.Dialog.CorePersonContact.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Pman.Dialog.CorePersonContact.js b/Pman.Dialog.CorePersonContact.js index 846f0467..ecbba5a0 100644 --- a/Pman.Dialog.CorePersonContact.js +++ b/Pman.Dialog.CorePersonContact.js @@ -81,6 +81,15 @@ Pman.Dialog.CorePersonContact = { { xtype: 'ComboBox', xns: Roo.form, + listeners : { + add : function (combo) + { + var cb = this; + Pman.Dialog.Companies.show( { id: 0 }, function(data) { + cb.setFromData(data); + }); + } + }, allowBlank : 'false', displayField : 'code', editable : 'false', @@ -101,12 +110,6 @@ Pman.Dialog.CorePersonContact = { typeAhead : true, valueField : 'id', width : 300, - listeners : { - add : function (combo) - { - - } - }, store : { xtype: 'Store', xns: Roo.data, -- 2.39.2