this.confirmationDialog = null;
this.loading = null;
this._showLoadingOverlayOnce = false;
- this._suppressErrors = (this.options === true);
+ this._suppressErrors = (this.options.suppressErrors === true);
// send request immediately after initialization
if (this.options.autoSend) {
* @param integer seconds
*/
init: function(seconds) {
- new WCF.PeriodicalExecuter(function() {
+ new WCF.PeriodicalExecuter(function(pe) {
new WCF.Action.Proxy({
autoSend: true,
data: {
actionName: 'keepAlive',
className: 'wcf\\data\\session\\SessionAction'
},
+ failure: function() { pe.stop(); },
showLoadingOverlay: false,
suppressErrors: true
});