Pman.Tab.AdminWatches.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 5 Mar 2014 08:48:55 +0000 (16:48 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 5 Mar 2014 08:48:55 +0000 (16:48 +0800)
Pman.Tab.AdminWatches.js

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

index 2dc42d5..b23e725 100644 (file)
@@ -32,7 +32,7 @@
                     "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}"
+                                "beforeload": "function (_self, options)\n{\n        var val = _this.affectSel.getValue();\n        if (val.length) {\n            options.params.ontable = val;\n        }\n        if (_this.requestArgs) { \n            Roo.apply(options.params, _this.requestArgs);\n        }\n        \n}"
                             },
                             "*prop": "dataSource",
                             "remoteSort": true,
index 7060dcc..88b172b 100644 (file)
@@ -64,6 +64,9 @@ Pman.Tab.AdminWatches = new Roo.XComponent({
                                 if (val.length) {
                                     options.params.ontable = val;
                                 }
+                                if (_this.requestArgs) { 
+                                    Roo.apply(options.params, _this.requestArgs);
+                                }
                                 
                         }
                     },