Pman.Dialog.CoreCompanies.js
"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,
this.dialog = Roo.factory({
xtype: 'LayoutDialog',
xns: Roo,
+ listeners : {
+ beforeshow : function (_self)
+ {
+ if (data.isOwner || !Pman.Login.isOwner()) {
+ this.dialog.setTitle("Your Company Details");
+ if (this.form.findField('comptype')) {
+ this.form.findField('comptype').disable();
+ }
+
+
+
+
+ } else {
+ this.dialog.setTitle(data.id ? "Edit Company" : "Add Company");
+ if (this.form.findField('comptype')) {
+ this.form.findField('comptype').enable();
+ }
+ }
+ }
+ },
autoCreate : 'true',
closable : false,
collapsible : false,