Pman.Tab.XtuplePurchasesVendors.bjs
authorEdward <edward@roojs.com>
Tue, 3 Dec 2013 06:42:55 +0000 (14:42 +0800)
committerEdward <edward@roojs.com>
Tue, 3 Dec 2013 06:42:55 +0000 (14:42 +0800)
Pman.Tab.XtuplePurchasesVendors.js

Pman.Tab.XtuplePurchasesVendors.bjs
Pman.Tab.XtuplePurchasesVendors.js

index 03688c9..92fcd2a 100644 (file)
                                                     "|xns": "Roo.Toolbar",
                                                     "xtype": "Separator"
                                                 },
+                                                {
+                                                    "listeners": {
+                                                        "toggle": "function (_self, pressed)\n{\n\n    this.setText(pressed ? \"Hide Inactive\" : \"Show Inactive\");\n    (function() { _this.grid.footer.onClick('first'); }).defer(100);\n}",
+                                                        "render": "function (_self)\n{\n    _this.active = _self;\n}"
+                                                    },
+                                                    "enableToggle": true,
+                                                    "text": "Show Inactive",
+                                                    "xtype": "Button",
+                                                    "|xns": "Roo.Toolbar"
+                                                },
                                                 {
                                                     "|xns": "Roo.Toolbar",
                                                     "xtype": "Fill"
index 782b9fe..bff9927 100644 (file)
@@ -221,6 +221,24 @@ Pman.Tab.XtuplePurchasesVendors = new Roo.XComponent({
                                         xtype: 'Separator',
                                         xns: Roo.Toolbar
                                     },
+                                    {
+                                        xtype: 'Button',
+                                        xns: Roo.Toolbar,
+                                        listeners : {
+                                            toggle : function (_self, pressed)
+                                            {
+                                            
+                                                this.setText(pressed ? "Hide Inactive" : "Show Inactive");
+                                                (function() { _this.grid.footer.onClick('first'); }).defer(100);
+                                            },
+                                            render : function (_self)
+                                            {
+                                                _this.active = _self;
+                                            }
+                                        },
+                                        enableToggle : true,
+                                        text : "Show Inactive"
+                                    },
                                     {
                                         xtype: 'Fill',
                                         xns: Roo.Toolbar