Pman.Dialog.CoreCompanies.js
"items": [
{
"listeners": {
"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,
},
"autoCreate": "true",
"closable": false,
{
if (data.isOwner || !Pman.Login.isOwner()) {
this.dialog.setTitle("Your Company Details");
{
if (data.isOwner || !Pman.Login.isOwner()) {
this.dialog.setTitle("Your Company Details");
- if (this.form.findField('comptype')) {
- this.form.findField('comptype').disable();
+ if (_this.form.findField('comptype')) {
+ _this.form.findField('comptype').disable();
} else {
this.dialog.setTitle(data.id ? "Edit Company" : "Add Company");
} else {
this.dialog.setTitle(data.id ? "Edit Company" : "Add Company");
- if (this.form.findField('comptype')) {
- this.form.findField('comptype').enable();
+ if (_this.form.findField('comptype')) {
+ _this.form.findField('comptype').enable();