From: Alexander Ebert Date: Tue, 19 May 2015 15:00:56 +0000 (+0200) Subject: Fixed a few issues X-Git-Tag: 3.0.0_Beta_1~2384 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d1cd9fd8ff1ff769f132a23e03113eb4b6b13953;p=GitHub%2FWoltLab%2FWCF.git Fixed a few issues --- diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Ajax.js b/wcfsetup/install/files/js/WoltLab/WCF/Ajax.js index 903fe13778..ea015aa893 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Ajax.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Ajax.js @@ -69,6 +69,10 @@ define(['Core', 'Language', 'DOM/Util', 'UI/Dialog'], function(Core, Language, D WCF.LoadingOverlayHandler.show(); } + if (this._xhr instanceof XMLHttpRequest) { + this._previousXhr = this._xhr; + } + this._xhr = new XMLHttpRequest(); this._xhr.open(this._options.type, this._options.url, true); this._xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); @@ -77,7 +81,7 @@ define(['Core', 'Language', 'DOM/Util', 'UI/Dialog'], function(Core, Language, D var self = this; this._xhr.onload = function() { if (this.readyState === XMLHttpRequest.DONE) { - if (this.stauts >= 200 && this.status < 300 || this.status === 304) { + if (this.status >= 200 && this.status < 300 || this.status === 304) { self._success(this); } else { @@ -124,6 +128,8 @@ define(['Core', 'Language', 'DOM/Util', 'UI/Dialog'], function(Core, Language, D * Do not call this method, it exists for compatibility with WCF.Action.Proxy * and will be removed at some point without further notice. * + * @deprecated 2.2 + * * @param {string} key option name * @param {*} value option value */