Pman.Tab.AdminContacts.bjs
authorChris <chris@roojs.com>
Fri, 8 Mar 2013 06:48:30 +0000 (14:48 +0800)
committerChris <chris@roojs.com>
Fri, 8 Mar 2013 06:48:30 +0000 (14:48 +0800)
Pman.Tab.AdminContacts.js

Pman.Tab.AdminContacts.bjs
Pman.Tab.AdminContacts.js

index 5f8ab43..8980ee7 100644 (file)
                                     "xtype": "Button",
                                     "|xns": "Roo.Toolbar"
                                 },
+                                {
+                                    "listeners": {
+                                        "toggle": "function (_self, pressed)\n{\n   _this.grid.footer.onClick('first');\n   this.setText(pressed ? \"Show Company\" : \"Show No Company\");\n   \n   \n}",
+                                        "render": "function (_self)\n{\n  _this.active_company_button = _self;\n}"
+                                    },
+                                    "enableToggle": true,
+                                    "text": "Show No Company",
+                                    "xtype": "Button",
+                                    "|xns": "Roo.Toolbar"
+                                },
                                 {
                                     "|xns": "Roo.Toolbar",
                                     "xtype": "Fill"
index cbb4031..c92efc5 100644 (file)
@@ -628,6 +628,25 @@ Pman.Tab.AdminContacts = new Roo.XComponent({
                                    this.setText(pressed ? "Show Company" : "Show No Company");
                                    
                                    
+                                },
+                                render : function (_self)
+                                {
+                                  _this.active_company_button = _self;
+                                }
+                            },
+                            enableToggle : true,
+                            text : "Show No Company"
+                        },
+                        {
+                            xtype: 'Button',
+                            xns: Roo.Toolbar,
+                            listeners : {
+                                toggle : function (_self, pressed)
+                                {
+                                   _this.grid.footer.onClick('first');
+                                   this.setText(pressed ? "Show Company" : "Show No Company");
+                                   
+                                   
                                 },
                                 render : function (_self)
                                 {