Added proper support for JSONP requests
authorAlexander Ebert <ebert@woltlab.com>
Thu, 28 Feb 2013 13:12:13 +0000 (14:12 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 28 Feb 2013 13:12:13 +0000 (14:12 +0100)
wcfsetup/install/files/js/WCF.js

index 3b17ea4a196ab35737bcc8552d494fbde7a8a63b..657af68996ce5b31e16843afe841e01c32fafa15 100755 (executable)
@@ -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),