Skip to content

Commit

Permalink
Added fields weren't getting properly deleted, because the list conta…
Browse files Browse the repository at this point in the history
…ined jQuery objects instead of DOM elements.
  • Loading branch information
cmlenz committed Jul 28, 2011
1 parent 34912b7 commit 045146e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.iframe-transport.js
Expand Up @@ -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 {

Expand Down

0 comments on commit 045146e

Please sign in to comment.