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

index 680890b..3e6032a 100644 (file)
@@ -610,6 +610,22 @@ Pman.Tab.AdminContacts = new Roo.util.Observable({
                             xtype: 'Fill',
                             xns: Roo.Toolbar
                         },
+                        {
+                            xtype: 'Button',
+                            xns: Roo.Toolbar,
+                            listeners : {
+                                click : function()
+                                {
+                                    
+                                    _this.dialog.show( { id : 0 } , function() {
+                                        _this.grid.footer.onClick('first');
+                                   }); 
+                                }
+                            },
+                            cls : 'x-btn-text-icon',
+                            text : "Add",
+                            icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
+                        },
                         {
                             xtype: 'Button',
                             xns: Roo.Toolbar,