Pman.Tab.AdminWatches.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 28 Sep 2011 07:30:04 +0000 (15:30 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Sep 2011 07:30:04 +0000 (15:30 +0800)
Pman.Tab.AdminWatches.bjs
Pman.Tab.AdminWatches.js
Pman.Tab.AdminWatches.js

Pman.Tab.AdminWatches.bjs
Pman.Tab.AdminWatches.js

index f5d40a6..1aa3e25 100644 (file)
                     "|xns": "Roo.grid",
                     "items": [
                         {
+                            "listeners": {
+                                "beforeload": "function (_self, options)\n{\n        var val = _this.affectSel.getValue();\n        if (val.length) {\n            options.params.ontable = val;\n        }\n        \n}"
+                            },
                             "*prop": "dataSource",
-                            "xtype": "Store",
                             "remoteSort": true,
+                            "xtype": "Store",
                             "|sortInfo": "{ field : 'ontable', direction: 'ASC' }",
                             "|xns": "Roo.data",
                             "items": [
index 5b9df23..70821a8 100644 (file)
@@ -72,6 +72,16 @@ Pman.Tab.AdminWatches = new Roo.util.Observable({
                 dataSource : {
                     xtype: 'Store',
                     xns: Roo.data,
+                    listeners : {
+                        beforeload : function (_self, options)
+                        {
+                                var val = _this.affectSel.getValue();
+                                if (val.length) {
+                                    options.params.ontable = val;
+                                }
+                                
+                        }
+                    },
                     remoteSort : true,
                     sortInfo : { field : 'ontable', direction: 'ASC' },
                     proxy : {