projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a2b5f53
)
Pman.Dialog.CorePersonContact.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 17 Sep 2010 10:53:49 +0000
(18:53 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 17 Sep 2010 10:53:49 +0000
(18:53 +0800)
Pman.Dialog.CorePersonContact.js
patch
|
blob
|
history
diff --git
a/Pman.Dialog.CorePersonContact.js
b/Pman.Dialog.CorePersonContact.js
index
846f046
..
ecbba5a
100644
(file)
--- a/
Pman.Dialog.CorePersonContact.js
+++ b/
Pman.Dialog.CorePersonContact.js
@@
-81,6
+81,15
@@
Pman.Dialog.CorePersonContact = {
{
xtype: 'ComboBox',
xns: Roo.form,
{
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',
allowBlank : 'false',
displayField : 'code',
editable : 'false',
@@
-101,12
+110,6
@@
Pman.Dialog.CorePersonContact = {
typeAhead : true,
valueField : 'id',
width : 300,
typeAhead : true,
valueField : 'id',
width : 300,
- listeners : {
- add : function (combo)
- {
-
- }
- },
store : {
xtype: 'Store',
xns: Roo.data,
store : {
xtype: 'Store',
xns: Roo.data,