From: Alexander Ebert Date: Thu, 28 Feb 2013 13:12:13 +0000 (+0100) Subject: Added proper support for JSONP requests X-Git-Tag: 2.0.0_Beta_1~452 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=889cdd4c49457badf1f3514ec17cad6ce20c7a1c;p=GitHub%2FWoltLab%2FWCF.git Added proper support for JSONP requests --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 3b17ea4a19..657af68996 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1470,6 +1470,7 @@ WCF.Action.Proxy = Class.extend({ dataType: 'json', after: null, init: null, + jsonp: 'callback', failure: null, showLoadingOverlay: true, success: null, @@ -1501,6 +1502,7 @@ WCF.Action.Proxy = Class.extend({ $.ajax({ data: this.options.data, dataType: this.options.dataType, + jsonp: this.options.jsonp, type: this.options.type, url: this.options.url, success: $.proxy(this._success, this),