Pman.Tab.XtupleCreditMemos.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 10 Dec 2013 08:54:19 +0000 (16:54 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 10 Dec 2013 08:54:19 +0000 (16:54 +0800)
Pman.Tab.XtupleCreditMemos.js

Pman.Tab.XtupleCreditMemos.bjs
Pman.Tab.XtupleCreditMemos.js

index c5a1bf9..79de794 100644 (file)
@@ -67,6 +67,9 @@
                             "|xns": "Roo",
                             "items": [
                                 {
+                                    "listeners": {
+                                        "click": "function (_self, e)\n{\n new Pman.Download({\n        grid : _this.grid\n    });\n    Roo.MessageBox.alert(\"Notice\", \"Report is downloading\");\n}"
+                                    },
                                     "text": "Download",
                                     "xtype": "Button",
                                     "|xns": "Roo.Toolbar"
index 9bcc544..7854935 100644 (file)
@@ -270,6 +270,15 @@ Pman.Tab.XtupleCreditMemos = new Roo.XComponent({
                         {
                             xtype: 'Button',
                             xns: Roo.Toolbar,
+                            listeners : {
+                                click : function (_self, e)
+                                {
+                                 new Pman.Download({
+                                        grid : _this.grid
+                                    });
+                                    Roo.MessageBox.alert("Notice", "Report is downloading");
+                                }
+                            },
                             text : "Download"
                         }
                     ]