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

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

index 95dc4db..e66d12b 100644 (file)
                                             "|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"
index 437442b..dbf78a6 100644 (file)
@@ -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"
                                         }
                                     ]