Pman.Dialog.CoreCompanies.js
},
{
"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",
listeners : {
click : function (_self, e)
{
- var _t = this;
+ var _t = _this.form.findField('logo_id');
Pman.Dialog.Image.show({
onid :_this.data.id,