From 89850e9bea6c50f916d0e42fa713b59102203a9c Mon Sep 17 00:00:00 2001 From: rwldrn Date: Fri, 22 Oct 2010 18:56:22 -0400 Subject: [PATCH] Fixes issue #5803 --- src/ajax.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ajax.js b/src/ajax.js index a40e223e76..29e15b10d6 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -207,6 +207,12 @@ jQuery.extend({ if ( s.data && s.processData && typeof s.data !== "string" ) { s.data = jQuery.param( s.data, s.traditional ); } + + // If the jsonpCallback has been set, we can assume that dataType is jsonp + // Ticket #5803 + if ( s.jsonpCallback ) { + s.dataType = "jsonp"; + } // Handle JSONP Parameter Callbacks if ( s.dataType === "jsonp" ) {