Pman.Tab.XtupleCurrency.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 23 Dec 2013 11:06:36 +0000 (19:06 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 23 Dec 2013 11:06:36 +0000 (19:06 +0800)
Pman.Tab.XtupleCurrency.js

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

index 0fd4c01..f54b6fe 100644 (file)
                                                         "|click": "function()\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( { id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
                                                     },
                                                     "|xns": "Roo.Toolbar"
+                                                },
+                                                {
+                                                    "listeners": {
+                                                        "|click": "function()\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( { id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
+                                                    },
+                                                    "cls": "x-btn-text-icon",
+                                                    "text": "Get this months rates",
+                                                    "xtype": "Button",
+                                                    "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
+                                                    "|xns": "Roo.Toolbar"
                                                 }
                                             ]
                                         },
index 72e9534..7dd9f74 100644 (file)
@@ -146,6 +146,22 @@ Pman.Tab.XtupleCurrency = new Roo.XComponent({
                                                }); 
                                             }
                                         }
+                                    },
+                                    {
+                                        xtype: 'Button',
+                                        xns: Roo.Toolbar,
+                                        listeners : {
+                                            click : function()
+                                            {
+                                                if (!_this.dialog) return;
+                                                _this.dialog.show( { id : 0 } , function() {
+                                                    _this.grid.footer.onClick('first');
+                                               }); 
+                                            }
+                                        },
+                                        cls : 'x-btn-text-icon',
+                                        text : "Get this months rates",
+                                        icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
                                     }
                                 ]
                             },