Skip to content

Commit

Permalink
- add support for embedding text response in a textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
malsup committed Apr 28, 2011
1 parent eb5581f commit 4f46b5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.form.js
@@ -1,6 +1,6 @@
/*!
* jQuery Form Plugin
* version: 2.70 (28-APR-2011)
* version: 2.71 (28-APR-2011)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
Expand Down Expand Up @@ -360,7 +360,7 @@ $.fn.ajaxSubmit = function(options) {
return headers[header];
};

var scr = /(json|script)/.test(s.dataType);
var scr = /(json|script|text)/.test(s.dataType);
if (scr || s.textarea) {
// see if user embedded response in textarea
var ta = doc.getElementsByTagName('textarea')[0];
Expand Down

0 comments on commit 4f46b5c

Please sign in to comment.