Permalink
Browse files

Added fields weren't getting properly deleted, because the list conta…

…ined jQuery objects instead of DOM elements.
  • Loading branch information...
1 parent 34912b7 commit 045146e7292eef4babc62d5ac1a144b73f825ed0 @cmlenz committed Jul 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.iframe-transport.js
@@ -150,14 +150,14 @@
value = value.value;
}
addedFields.push($("<input type='hidden'>").attr("name", name)
- .attr("value", value).appendTo(form));
+ .attr("value", value).appendTo(form)[0]);
});
// Add a hidden `X-Requested-With` field with the value `IFrame` to the
// field, to help server-side code to determine that the upload happened
// through this transport.
addedFields.push($("<input type='hidden' name='X-Requested-With'>")
- .attr("value", "IFrame").appendTo(form));
+ .attr("value", "IFrame").appendTo(form)[0]);
return {

0 comments on commit 045146e

Please sign in to comment.