X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Dialog.CoreCompanies.bjs;h=64cb919b76d0e9d84e48f569b8555f0680d903b7;hb=3a73f771e6a88ab25f72e0ec2bc284da07675098;hp=470697cacd32b0805d959b2eeef69b10f1e9549e;hpb=a2bb4755561719ac0111df3e519c7790f075a430;p=Pman.Core diff --git a/Pman.Dialog.CoreCompanies.bjs b/Pman.Dialog.CoreCompanies.bjs index 470697ca..64cb919b 100644 --- a/Pman.Dialog.CoreCompanies.bjs +++ b/Pman.Dialog.CoreCompanies.bjs @@ -6,6 +6,9 @@ "path": "/home/chris/gitlive/Pman.Core/Pman.Dialog.CoreCompanies.bjs", "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}" + }, "autoCreate": "true", "closable": false, "collapsible": false,