_to_data : 1
},
success : function(res) {
- _this.form.setValues(res.data);
+
+ _this.data = res.data;
+
+ _this.form.setValues(_this.data);
+
return;
},
failure: function(res) {
return;
}
- var p1 = _this.form.findField('password').getValue();
- var p2 = _this.form.findField('password1').getValue();
-
- if (p1 != p2) {
- _this.form.findField('password1').markInvalid('Password do not match');
- return;
- }
-
_this.dialog.el.mask('Sending...');
_this.form.doAction('submit');
- },
- render : function (_self)
- {
- _this.btn_ok = _self;
}
},
xns : Roo.bootstrap,
}
if (action.type == 'load') {
+ if(_this.data.status * 1 == 0){
+ _this.form.findField('status').reset();
+ }
+
return;
}
if (action.type =='submit') {
_this.dialog.hide();
- Roo.get(document.body).mask('Start your Application');
-
- setTimeout(function() {
- window.location.href = baseURL;
- }, 500);
-
return;
}