Pman.Dialog.CorePersonContact.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 17 Sep 2010 10:54:59 +0000 (18:54 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 17 Sep 2010 10:54:59 +0000 (18:54 +0800)
Pman.Dialog.CorePersonContact.js

index 4cc0e18..bca4d72 100644 (file)
@@ -166,14 +166,15 @@ Pman.Dialog.CorePersonContact = {
                                     store : {
                                         xtype: 'Store',
                                         xns: Roo.data,
-                                        remoteSort : true,
-                                        sortInfo : { direction : 'ASC', field: 'id' },
                                         listeners : {
                                             beforeload : function (_self, o){
                                                 o.params = o.params || {};
-                                                // set more here
+                                                var coid = _this.form.findField('company_id').getValue();
+                                                    o.params.company_id = coid;
                                             }
                                         },
+                                        remoteSort : true,
+                                        sortInfo : { direction : 'ASC', field: 'id' },
                                         proxy : {
                                             xtype: 'HttpProxy',
                                             xns: Roo.data,