_this.dialog.el.unmask();
//console.log('load completed');
// error messages?????
-
+ if(act.type == 'setdata'){
+ this.load({ method: 'GET', params: { '_id' : _this.data.id }});
+ return;
+ }
if (act.type == 'load') {
-
_this.data = act.result.data;
var meth = _this.data.isOwner || !Pman.Login.isOwner() ? 'disable' : 'enable';
},
fileUpload : true,
labelWidth : 160,
+ url : baseURL + '/Roo/Person.php',
items : [
{
xtype: 'Column',
fieldLabel : 'Logo Image',
height : 170,
icon : 'rootURL + \'images/default/dd/drop-add.gif\'',
+ name : 'logo_id',
style : 'border: 1px solid #ccc;',
width : 170,
valueRenderer : function(v) {
},
{
xtype: 'Button',
- xns: Roo
+ xns: Roo,
+ listeners : {
+ click : function (_self, e)
+ {
+ var _t = _this.form.findField('logo_id');
+
+ Pman.Dialog.Image.show({
+ onid :_this.data.id,
+ ontable : 'Companies',
+ imgtype : 'LOGO'
+ }, function(data) {
+ if (data) {
+ _t.setValue(data.id);
+ }
+
+ });
+ }
+ },
+ text : "Add Image"
}
]
},