From c0aaa58844f983163dda809a7a241955ef96cd31 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 27 Feb 2013 02:12:18 +0100 Subject: [PATCH] Changed API for action proxy's failure method --- wcfsetup/install/files/js/WCF.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index af4d4139c1..3b17ea4a19 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1544,12 +1544,12 @@ WCF.Action.Proxy = Class.extend({ */ _failure: function(jqXHR, textStatus, errorThrown) { try { - var data = $.parseJSON(jqXHR.responseText); + var $data = $.parseJSON(jqXHR.responseText); // call child method if applicable var $showError = true; if ($.isFunction(this.options.failure)) { - $showError = this.options.failure(jqXHR, textStatus, errorThrown, jqXHR.responseText); + $showError = this.options.failure($data, jqXHR, textStatus, errorThrown); } if (!this._suppressErrors && $showError !== false) { @@ -1561,7 +1561,7 @@ WCF.Action.Proxy = Class.extend({ // call child method if applicable var $showError = true; if ($.isFunction(this.options.failure)) { - $showError = this.options.failure(jqXHR, textStatus, errorThrown, jqXHR.responseText); + $showError = this.options.failure(null, jqXHR, textStatus, errorThrown); } if (!this._suppressErrors && $showError !== false) { -- 2.20.1