_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',
listeners : {
click : function (_self, e)
{
- var _t = this;
+ var _t = _this.form.findField('logo_id');
Pman.Dialog.Image.show({
onid :_this.data.id,
{
xtype: 'Button',
xns: Roo,
+ listeners : {
+ click : function (_self, e)
+ {
+ _this.dialog.hide();
+ }
+ },
text : "Cancel"
},
{
xtype: 'Button',
xns: Roo,
+ listeners : {
+ click : function (_self, e)
+ {
+ // do some checks?
+
+
+ _this.dialog.el.mask("Saving");
+ _this.form.doAction("submit");
+
+ }
+ },
text : "Save"
}
]