actioncomplete : function(_self,action)
{
if (action.type == 'setdata') {
- if(_this.data.id){
+ if(_this.data.vendtype_id){
_this.dialog.el.mask("Loading");
- this.load({ method: 'GET', params: { '_id' : _this.data.id }});
+ this.load({ method: 'GET', params: { '_id' : _this.data.vendtype_id }});
}
return;
}
if (action.type == 'load') {
+ _this.data = action.result.data;
_this.dialog.el.unmask();
return;
}