Pman.Tab.XtupleCurrency.bjs
authorEdward <edward@roojs.com>
Fri, 27 Dec 2013 06:32:37 +0000 (14:32 +0800)
committerEdward <edward@roojs.com>
Fri, 27 Dec 2013 06:32:37 +0000 (14:32 +0800)
Pman.Tab.XtupleCurrency.js

Pman.Tab.XtupleCurrency.bjs
Pman.Tab.XtupleCurrency.js

index aec3df1..73b2fd5 100644 (file)
                                                 },
                                                 {
                                                     "listeners": {
-                                                        "|click": "function()\n{\n    var s = _this.grid.getSelectionModel().getSelected();\n    \n    if(!s){\n        Roo.MessageBox.alert(\"Error\", \"Please select a currency!\");\n        return;\n    }\n        \n    new Pman.Request({\n        method: 'POST',\n        url: baseURL+ '/Roo/curr_symbol',\n        params : {\n            curr_id : s.data.curr_id,\n            _load_rates : 1\n        },\n        success : function() {\n\n        }\n    });\n}\n"
+                                                        "|click": "function()\n{\n    var s = _this.grid.getSelectionModel().getSelected();\n    \n    if(!s){\n        Roo.MessageBox.alert(\"Error\", \"Please select a currency!\");\n        return;\n    }\n        \n    new Pman.Request({\n        method: 'POST',\n        url: baseURL+ '/Roo/curr_symbol',\n        params : {\n            curr_id : s.data.curr_id,\n            _load_rates : 1\n        },\n        success : function() {\n            _this.rgrid.footer.onClick('first');\n        }\n    });\n}\n"
                                                     },
                                                     "cls": "x-btn-text-icon",
                                                     "text": "Get this months rates",
index e71d1a6..a1802d8 100644 (file)
@@ -166,7 +166,7 @@ Pman.Tab.XtupleCurrency = new Roo.XComponent({
                                                         _load_rates : 1
                                                     },
                                                     success : function() {
-                                            
+                                                        _this.rgrid.footer.onClick('first');
                                                     }
                                                 });
                                             }