git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d49335
)
Send data if a DELETE Ajax request is done. Fixes #5752.
author
jeresig
<jeresig@gmail.com>
Wed, 13 Jan 2010 05:42:22 +0000
(
00:42
-0500)
committer
jeresig
<jeresig@gmail.com>
Wed, 13 Jan 2010 05:42:22 +0000
(
00:42
-0500)
src/ajax.js
patch
|
blob
|
history
diff --git
a/src/ajax.js
b/src/ajax.js
index
8aa6a9a
..
3ef2d4f
100644
(file)
--- a/
src/ajax.js
+++ b/
src/ajax.js
@@
-478,7
+478,7
@@
jQuery.extend({
// Send the data
try {
- xhr.send( type === "POST" || type === "PUT" ? s.data : null );
+ xhr.send( type === "POST" || type === "PUT" || type === "DELETE" ? s.data : null );
} catch(e) {
jQuery.handleError(s, xhr, null, e);
// Fire the complete handlers