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

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

index 1ad243c..470697c 100644 (file)
                                         },
                                         {
                                             "listeners": {
-                                                "click": "function (_self, e)\n{\n    var _t = this;\n                         \n    Pman.Dialog.Image.show({\n        onid :_this.data.id,\n        ontable : 'Companies',\n        imgtype : 'LOGO'\n    }, function(data) {\n        if  (data) {\n            _t.setValue(data.id);\n        }\n        \n    });\n}"
+                                                "click": "function (_self, e)\n{\n    var _t = _this.form.findField('logo_id');\n                         \n    Pman.Dialog.Image.show({\n        onid :_this.data.id,\n        ontable : 'Companies',\n        imgtype : 'LOGO'\n    }, function(data) {\n        if  (data) {\n            _t.setValue(data.id);\n        }\n        \n    });\n}"
                                             },
                                             "text": "Add Image",
                                             "xtype": "Button",
index 102633d..2ee9ff1 100644 (file)
@@ -228,7 +228,7 @@ Pman.Dialog.CoreCompanies = {
                                             listeners : {
                                                 click : function (_self, e)
                                                 {
-                                                    var _t = this;
+                                                    var _t = _this.form.findField('logo_id');
                                                                          
                                                     Pman.Dialog.Image.show({
                                                         onid :_this.data.id,