Pman.Tab.MTrackTimeline.bjs
authorAlan Knowles <alan@akbkhome.com>
Mon, 9 Apr 2012 10:37:01 +0000 (18:37 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 9 Apr 2012 10:37:01 +0000 (18:37 +0800)
Pman.Tab.MTrackTimeline.js

Pman.Tab.MTrackTimeline.bjs
Pman.Tab.MTrackTimeline.js

index 9314eed..1071c8d 100644 (file)
@@ -62,7 +62,7 @@
                                 },
                                 {
                                     "listeners": {
-                                        "beforeselect": "function (_self, node, selections)\n{\n   //Roo.log(node)\n   //Roo.log(this.indexOf(node));\n   var rec =  this.store.getAt(this.indexOf(node));\n   //Roo.log(data);\n   \n   \n   \n   \n}",
+                                        "beforeselect": "function (_self, node, selections)\n{\n   //Roo.log(node)\n   //Roo.log(this.indexOf(node));\n   var rec =  this.store.getAt(this.indexOf(node));\n   //Roo.log(data);\n   \n   new Pman.Request({\n         url : baseURL + '/Roo/mtrack_change',\n         method :'GET',\n         params : {\n            _id : rec.data.id,\n            _withdiff : 1\n        },\n        success : function (res) {\n           Roo.log( _this.tpanel.view.chgtmp.apply(res));\n            \n        \n        }\n    });\n   \n   \n   \n   \n}",
                                         "beforeclick": "function (_self, index, node, e)\n{\n    Roo.log(node);\n    Roo.log(e);\n}"
                                     },
                                     "multiSelect": true,
index dc429fe..b63f251 100644 (file)
@@ -123,6 +123,20 @@ Pman.Tab.MTrackTimeline = new Roo.XComponent({
                                        var rec =  this.store.getAt(this.indexOf(node));
                                        //Roo.log(data);
                                        
+                                       new Pman.Request({
+                                             url : baseURL + '/Roo/mtrack_change',
+                                             method :'GET',
+                                             params : {
+                                                _id : rec.data.id,
+                                                _withdiff : 1
+                                            },
+                                            success : function (res) {
+                                               Roo.log( _this.tpanel.view.chgtmp.apply(res));
+                                                
+                                            
+                                            }
+                                        });
+