Permalink
Browse files

- add support for embedding text response in a textarea

  • Loading branch information...
1 parent 9928b84 commit 77ea53de1464997eae5cdf4013aff257bc29ec44 @malsup malsup committed with mgaert Apr 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 jquery.form.js
View
@@ -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/
@@ -374,7 +374,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];

0 comments on commit 77ea53d

Please sign in to comment.