From 26767a5b0390a7824853d87fb4a51a836cdb1b4c Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 12 Sep 2012 14:26:23 +0800 Subject: [PATCH] Pman.Dialog.CoreCompanies.bjs Pman.Dialog.CoreCompanies.js --- Pman.Dialog.CoreCompanies.bjs | 3 +++ Pman.Dialog.CoreCompanies.js | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/Pman.Dialog.CoreCompanies.bjs b/Pman.Dialog.CoreCompanies.bjs index 95dc4db4..e66d12b8 100644 --- a/Pman.Dialog.CoreCompanies.bjs +++ b/Pman.Dialog.CoreCompanies.bjs @@ -167,6 +167,9 @@ "|xns": "Roo.form" }, { + "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}" + }, "text": "Add Image", "xtype": "Button", "|xns": "Roo" diff --git a/Pman.Dialog.CoreCompanies.js b/Pman.Dialog.CoreCompanies.js index 437442bf..dbf78a64 100644 --- a/Pman.Dialog.CoreCompanies.js +++ b/Pman.Dialog.CoreCompanies.js @@ -224,6 +224,23 @@ Pman.Dialog.CoreCompanies = { { xtype: 'Button', xns: Roo, + listeners : { + click : function (_self, e) + { + var _t = this; + + Pman.Dialog.Image.show({ + onid :_this.data.id, + ontable : 'Companies', + imgtype : 'LOGO' + }, function(data) { + if (data) { + _t.setValue(data.id); + } + + }); + } + }, text : "Add Image" } ] -- 2.39.2