_to_data : 1
},
success : function(res) {
- _this.form.setValues(res.data);
+
+ _this.data = res.data;
+
+ _this.form.setValues(_this.data);
+
return;
},
failure: function(res) {
}
if (action.type == 'load') {
+ if(_this.data.status * 1 == 0){
+ _this.form.findField('status').reset();
+ }
+
return;
}
if (action.type =='submit') {
},
{
xtype : 'Row',
- listeners : {
- render : function (_self)
- {
- _this.row_pwd_label = _self;
- }
- },
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
items : [
name : 'user_agent',
readOnly : true,
rows : 3,
+ style : 'margin-bottom: 15px;',
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap'
}
},
{
xtype : 'Row',
- listeners : {
- render : function (_self)
- {
- _this.row_pwd_label = _self;
- }
- },
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap',
items : [