From 433995941d851ddb25097f034084490f6071fae2 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 20 Jun 2009 17:48:44 -0700 Subject: 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". --- lib/jquery.form.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/jquery.form.js') 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); -- cgit v1.2.3