]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - js/jquery.form.js
Merge branch 'master' into 1.0.x
[quix0rs-gnu-social.git] / js / jquery.form.js
index cb8b5a6609a9c43b3804e4e90d44d5bddafbb249..936b847abe7bedc9ae44cf68cc75a48b1b94bf5c 100644 (file)
@@ -157,7 +157,7 @@ $.fn.ajaxSubmit = function(options) {
     function fileUpload() {\r
         var form = $form[0];\r
         \r
-        if ($(':input[@name=submit]', form).length) {\r
+        if ($(':input[name=submit]', form).length) {\r
             alert('Error: Form elements must not be named "submit".');\r
             return;\r
         }\r
@@ -570,7 +570,7 @@ $.fn.clearForm = function() {
 $.fn.clearFields = $.fn.clearInputs = function() {\r
     return this.each(function() {\r
         var t = this.type, tag = this.tagName.toLowerCase();\r
-        if (t == 'text' || t == 'password' || tag == 'textarea')\r
+        if (t == 'file' || t == 'text' || t == 'password' || tag == 'textarea')\r
             this.value = '';\r
         else if (t == 'checkbox' || t == 'radio')\r
             this.checked = false;\r