Pman.Tab.AdminContacts.bjs
authorAlan Knowles <alan@akbkhome.com>
Thu, 12 May 2011 10:15:38 +0000 (18:15 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 12 May 2011 10:15:38 +0000 (18:15 +0800)
Pman.Tab.AdminContacts.bjs

index 4e69b56..d46c0c6 100644 (file)
                                     "|icon": "rootURL + '/Pman/templates/images/edit-clear.gif'",
                                     "|xns": "Roo.Toolbar"
                                 },
+                                {
+                                    "listeners": {
+                                        "toggle": "function (_self, pressed)\n{\n   _this.grid.footer.onClick('first');\n   this.setText(pressed ? \"Show Active\" : \"Show Removed\");\n   \n   \n}",
+                                        "render": "function (_self)\n{\n  _this.activeButton = _self;\n}"
+                                    },
+                                    "enableToggle": true,
+                                    "text": "Show Removed",
+                                    "xtype": "Button",
+                                    "|xns": "Roo.Toolbar"
+                                },
                                 {
                                     "|xns": "Roo.Toolbar",
                                     "xtype": "Fill"