Pman.Tab.AdminWatches.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 28 Sep 2011 07:28:22 +0000 (15:28 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 28 Sep 2011 07:28:22 +0000 (15:28 +0800)
Pman.Tab.AdminWatches.bjs
Pman.Tab.AdminWatches.js
Pman.Tab.AdminWatches.js
Pman.Tab.AdminWatches.bjs
Pman.Tab.AdminWatches.bjs
Pman.Tab.AdminWatches.js
Pman.Tab.AdminWatches.js

Pman.Tab.AdminWatches.bjs
Pman.Tab.AdminWatches.js

index c3ac9da..d8df3c2 100644 (file)
                                 {
                                     "|xns": "Roo.Toolbar",
                                     "xtype": "Fill"
+                                },
+                                {
+                                    "text": "Add",
+                                    "xtype": "Button",
+                                    "cls": "x-btn-text-icon",
+                                    "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
+                                    "listeners": {
+                                        "|click": "function()\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( { id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
+                                    },
+                                    "|xns": "Roo.Toolbar"
                                 }
                             ]
                         },
index 2d84f3f..fd413f4 100644 (file)
@@ -435,6 +435,22 @@ Pman.Tab.AdminWatches = new Roo.util.Observable({
                         {
                             xtype: 'Fill',
                             xns: Roo.Toolbar
+                        },
+                        {
+                            xtype: 'Button',
+                            xns: Roo.Toolbar,
+                            text : "Add",
+                            cls : 'x-btn-text-icon',
+                            icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
+                            listeners : {
+                                click : function()
+                                {
+                                    if (!_this.dialog) return;
+                                    _this.dialog.show( { id : 0 } , function() {
+                                        _this.grid.footer.onClick('first');
+                                   }); 
+                                }
+                            }
                         }
                     ]
                 },