X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Tab.AdminOffice.bjs;h=d87cd46e52a24f483a920469667f2c93d70be6fd;hb=a1aa5e035b702f76c2df87c47bf96f6f1f157dbd;hp=846f65e70fb63df8233a148abe4956e37cc3a5dc;hpb=2b587c54ff02e79ca4e074355f77209f9ee8456d;p=Pman.Admin diff --git a/Pman.Tab.AdminOffice.bjs b/Pman.Tab.AdminOffice.bjs index 846f65e..d87cd46 100644 --- a/Pman.Tab.AdminOffice.bjs +++ b/Pman.Tab.AdminOffice.bjs @@ -87,7 +87,7 @@ "items" : [ { "listeners" : { - "|click" : "function()\n{\n if (!_this.dialog) {\n return;\n }\n var sd = Pman.Tab.AdminCompanies.grid.getSelectionModel().getSelected();\n if (!sd) {\n Roo.MessageBox.alert(\"Error\", \"Select an company to add an office to\");\n return;\n }\n var cdata = sd.data;\n _this.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}" + "|click" : "function()\n{\n if (!_this.dialog) {\n return;\n }\n var sd = Pman.Tab.AdminCompanies.grid.getSelectionModel().getSelected();\n if (!sd) {\n Roo.MessageBox.alert(\"Error\", \"Select an company to add an office to\");\n return;\n }\n var cdata = sd.data;\n _this. 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}" }, "text" : "Add", "xtype" : "Button",