From: Chris Date: Wed, 12 Sep 2012 06:41:40 +0000 (+0800) Subject: Pman.Dialog.CoreCompanies.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=1225171319ccb83c543e024e37eda56c66235f3f Pman.Dialog.CoreCompanies.bjs Pman.Dialog.CoreCompanies.js --- diff --git a/Pman.Dialog.CoreCompanies.bjs b/Pman.Dialog.CoreCompanies.bjs index 271ac354..e6753969 100644 --- a/Pman.Dialog.CoreCompanies.bjs +++ b/Pman.Dialog.CoreCompanies.bjs @@ -6,9 +6,6 @@ "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, diff --git a/Pman.Dialog.CoreCompanies.js b/Pman.Dialog.CoreCompanies.js index b8bacc91..86884920 100644 --- a/Pman.Dialog.CoreCompanies.js +++ b/Pman.Dialog.CoreCompanies.js @@ -30,26 +30,6 @@ Pman.Dialog.CoreCompanies = { 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,