aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorDavid Serduke <davidserduke@gmail.com>2007-12-14 17:06:41 +0000
committerDavid Serduke <davidserduke@gmail.com>2007-12-14 17:06:41 +0000
commit06c2f06a2183ef17a8119ef25a383a02572c0b55 (patch)
treea5073b48cfa24d9df0db3e9999f597c2bef0a240 /src/ajax.js
parent56a93fc2cce999ccfb0e3b80aeaa0f480ef7ae6e (diff)
downloadjquery-06c2f06a2183ef17a8119ef25a383a02572c0b55.tar.gz
jquery-06c2f06a2183ef17a8119ef25a383a02572c0b55.zip
Fixed #2046 by forcing the dataType to 'html' in the .load() function.
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 80cabd32d..a5a08ecd6 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -34,6 +34,7 @@ jQuery.fn.extend({
jQuery.ajax({
url: url,
type: type,
+ dataType: "html",
data: params,
complete: function(res, status){
// If successful, inject the HTML into all the matched elements