X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Dialog.CoreCompanies.bjs;h=cfb964867bb812dbcea0d013f7c564eb1d7c6802;hb=61aa2c3e708deaabb06e82b546556cddeaae3adc;hp=64cb919b76d0e9d84e48f569b8555f0680d903b7;hpb=3a73f771e6a88ab25f72e0ec2bc284da07675098;p=Pman.Core diff --git a/Pman.Dialog.CoreCompanies.bjs b/Pman.Dialog.CoreCompanies.bjs index 64cb919b..cfb96486 100644 --- a/Pman.Dialog.CoreCompanies.bjs +++ b/Pman.Dialog.CoreCompanies.bjs @@ -7,7 +7,7 @@ "items": [ { "listeners": { - "beforeshow": "function (_self)\n{\n if (data.isOwner || !Pman.Login.isOwner()) {\n this.dialog.setTitle(\"Your Company Details\");\n if (this.form.findField('comptype')) {\n this.form.findField('comptype').disable();\n }\n \n \n \n \n } else {\n this.dialog.setTitle(data.id ? \"Edit Company\" : \"Add Company\");\n if (this.form.findField('comptype')) {\n this.form.findField('comptype').enable();\n }\n }\n}" + "beforeshow": "function (_self)\n{\n if (data.isOwner || !Pman.Login.isOwner()) {\n this.dialog.setTitle(\"Your Company Details\");\n if (_this.form.findField('comptype')) {\n _this.form.findField('comptype').disable();\n }\n \n \n \n \n } else {\n this.dialog.setTitle(data.id ? \"Edit Company\" : \"Add Company\");\n if (_this.form.findField('comptype')) {\n _this.form.findField('comptype').enable();\n }\n }\n}" }, "autoCreate": "true", "closable": false,