summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-06-20 17:48:44 -0700
committerBharat Mediratta <bharat@menalto.com>2009-06-20 17:48:44 -0700
commit433995941d851ddb25097f034084490f6071fae2 (patch)
tree9c49ff956cc316f840273d17afab9976f6e1747d
parentaef6c1e75075dbb78da2e914355cce2e2a45dc1f (diff)
Reapply the change from aaac2441241df5565b4fa1562065a387e56578e1 where
we comment out the code that prevents the file uploader code from aborting when there are input elements named "submit".
-rw-r--r--lib/jquery.form.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/jquery.form.js b/lib/jquery.form.js
index c027f19c..40fb8b1f 100644
--- a/lib/jquery.form.js
+++ b/lib/jquery.form.js
@@ -166,10 +166,12 @@ $.fn.ajaxSubmit = function(options) {
function fileUpload() {
var form = $form[0];
+ /* (this breaks the watermark form uploader, turn it off for now)
if ($(':input[name=submit]', form).length) {
alert('Error: Form elements must not be named "submit".');
return;
}
+ */
var opts = $.extend({}, $.ajaxSettings, options);
var s = $.extend(true, {}, $.extend(true, {}, $.ajaxSettings), opts);