Pman.Tab.AdminNotifyRecur.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 25 Mar 2014 04:42:49 +0000 (12:42 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 25 Mar 2014 04:42:49 +0000 (12:42 +0800)
Pman.Tab.AdminNotifyRecur.js

Pman.Tab.AdminNotifyRecur.bjs
Pman.Tab.AdminNotifyRecur.js

index 7ae5415..ec82c0c 100644 (file)
@@ -93,6 +93,9 @@
                             ]
                         },
                         {
+                            "listeners": {
+                                "beforeload": "function (_self, options)\n{\n    if (!_this.personCombo) {\n        return false;\n    }\n    var p = _this.personCombo.getValue();\n    if (p*1) { \n        options.params.person_id = p;\n    }\n}"
+                            },
                             "*prop": "dataSource",
                             "remoteSort": true,
                             "xtype": "Store",
index 2d7915f..7cc129e 100644 (file)
@@ -124,6 +124,18 @@ Pman.Tab.AdminNotifyRecur = new Roo.XComponent({
                 dataSource : {
                     xtype: 'Store',
                     xns: Roo.data,
+                    listeners : {
+                        beforeload : function (_self, options)
+                        {
+                            if (!_this.personCombo) {
+                                return false;
+                            }
+                            var p = _this.personCombo.getValue();
+                            if (p*1) { 
+                                options.params.person_id = p;
+                            }
+                        }
+                    },
                     remoteSort : true,
                     sortInfo : { field : 'person_id_name', direction: 'ASC' },
                     proxy : {