// default connection failure
failure : function(response){
- if (this.form.maskEl) {
- this.form.maskEl.unmask();
- }
+
this.response = response;
this.failureType = Roo.form.Action.CONNECT_FAILURE;
this.form.afterAction(this, false);
(new Date() * 1) + '' + Math.random());
}
- if (this.form.maskEl) {
- this.form.maskEl.mask("Saving");
- }
+
Roo.Ajax.request(Roo.apply(this.createCallback(), {
form:this.form.el.dom,
if (this.haveProgress) {
Roo.MessageBox.hide();
}
- if (this.form.maskEl) {
- this.form.maskEl.unmask();
- }
+
var result = this.processResponse(response);
if(result === true || result.success){
if (this.haveProgress) {
Roo.MessageBox.hide();
}
- if (this.form.maskEl) {
- this.form.maskEl.unmask();
- }
+
this.response = response;
this.failureType = Roo.form.Action.CONNECT_FAILURE;
type : 'load',
run : function(){
- if (this.form.maskEl) {
- this.form.maskEl.mask("Loading");
- }
+
Roo.Ajax.request(Roo.apply(
this.createCallback(), {
method:this.getMethod(),
},
success : function(response){
- if (this.form.maskEl) {
- this.form.maskEl.unmask();
- }
+
var result = this.processResponse(response);
if(result === true || !result.success || !result.data){
this.failureType = Roo.form.Action.LOAD_FAILURE;