Pman.Dialog.CoreCompanies.bjs
authorChris <chris@roojs.com>
Wed, 12 Sep 2012 06:41:40 +0000 (14:41 +0800)
committerChris <chris@roojs.com>
Wed, 12 Sep 2012 06:41:40 +0000 (14:41 +0800)
Pman.Dialog.CoreCompanies.js

Pman.Dialog.CoreCompanies.bjs
Pman.Dialog.CoreCompanies.js

index 271ac35..e675396 100644 (file)
@@ -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,
index b8bacc9..8688492 100644 (file)
@@ -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,