Pman.Tab.AdminContacts.js
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.js

index 25f2198..ba3bbb4 100644 (file)
@@ -552,6 +552,25 @@ Pman.Tab.AdminContacts = new Roo.util.Observable({
                             cls : 'x-btn-icon',
                             icon : rootURL + '/Pman/templates/images/edit-clear.gif'
                         },
+                        {
+                            xtype: 'Button',
+                            xns: Roo.Toolbar,
+                            listeners : {
+                                toggle : function (_self, pressed)
+                                {
+                                   _this.grid.footer.onClick('first');
+                                   this.setText(pressed ? "Show Active" : "Show Removed");
+                                   
+                                   
+                                },
+                                render : function (_self)
+                                {
+                                  _this.activeButton = _self;
+                                }
+                            },
+                            enableToggle : true,
+                            text : "Show Removed"
+                        },
                         {
                             xtype: 'Fill',
                             xns: Roo.Toolbar