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