Pman.Tab.AdminOffice.bjs
authorAlan Knowles <alan@akbkhome.com>
Thu, 12 May 2011 08:27:09 +0000 (16:27 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 12 May 2011 08:27:09 +0000 (16:27 +0800)
Pman.Tab.AdminOffice.bjs

index 7028942..a309194 100644 (file)
                             "|xns": "Roo",
                             "items": [
                                 {
+                                    "listeners": {
+                                        "|click": "function()\n{\n    if (!_this.dialog) return;\n    \n     var cdata = Pman.Tab.AdminCompanies.grid.getSelectionModel().getSelected().data;\n    _dialog.show( { \n        id : 0 ,\n        company_name : cdata.name,\n        company_id : cdata.id,\n        address : cdata.address,\n        phone : cdata.tel,\n        fax : cdata.fax,\n        email  : cdata.email\n    } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
+                                    },
+                                    "cls": "x-btn-text-icon",
                                     "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"
                                 },
                                 {