failure: null,
showLoadingOverlay: true,
success: null,
+ suppressErrors: false,
type: 'POST',
url: 'index.php/AJAXProxy/?t=' + SECURITY_TOKEN + SID_ARG_2ND
}, options);
this.confirmationDialog = null;
this.loading = null;
this._showLoadingOverlayOnce = false;
- this._suppressErrors = false;
+ this._suppressErrors = (this.options === true);
// send request immediately after initialization
if (this.options.autoSend) {
this._showLoadingOverlayOnce = true;
},
+ /**
+ * Suppressed errors for this action proxy.
+ */
+ suppressErrors: function() {
+ this._suppressErrors = true;
+ },
+
/**
* Fires before request is send, displays global loading status.
*/
actionName: 'keepAlive',
className: 'wcf\\data\\session\\SessionAction'
},
- showLoadingOverlay: false
+ showLoadingOverlay: false,
+ suppressErrors: true
});
}, (seconds * 1000));
}