Skip to content

Commit 0f12213

Browse files
committed
jquery-form#419; fix for dotted path form ids (@thet)
version bump whitespace/tab fixes
1 parent 46f534c commit 0f12213

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-form",
3-
"version": "3.50.0",
3+
"version": "3.51.0",
44
"main": "jquery.form.js",
55
"author": "M. Alsup",
66
"dependencies": {

form.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"upload",
88
"ajax"
99
],
10-
"version": "3.50.0",
10+
"version": "3.51.0",
1111
"author": {
1212
"name": "M. Alsup",
1313
"url": "http://jquery.malsup.com"

jquery.form.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*!
22
* jQuery Form Plugin
3-
* version: 3.50.0-2014.02.05
3+
* version: 3.51.0-2014.06.20
44
* Requires jQuery v1.5 or later
5-
* Copyright (c) 2013 M. Alsup
5+
* Copyright (c) 2014 M. Alsup
66
* Examples and documentation at: http://malsup.com/jquery/form/
77
* Project repository: https://github.com/malsup/form
88
* Dual licensed under the MIT and GPL licenses.
@@ -956,7 +956,7 @@ $.fn.formToArray = function(semantic, elements) {
956956

957957
// #386; account for inputs outside the form which use the 'form' attribute
958958
if ( formId ) {
959-
els2 = $(':input[form=' + formId + ']').get();
959+
els2 = $(':input[form="' + formId + '"]').get(); // hat tip @thet
960960
if ( els2.length ) {
961961
els = (els || []).concat(els2);
962962
}
@@ -1188,13 +1188,13 @@ $.fn.clearFields = $.fn.clearInputs = function(includeHidden) {
11881188
else if (tag == 'select') {
11891189
this.selectedIndex = -1;
11901190
}
1191-
else if (t == "file") {
1192-
if (/MSIE/.test(navigator.userAgent)) {
1193-
$(this).replaceWith($(this).clone(true));
1194-
} else {
1195-
$(this).val('');
1196-
}
1197-
}
1191+
else if (t == "file") {
1192+
if (/MSIE/.test(navigator.userAgent)) {
1193+
$(this).replaceWith($(this).clone(true));
1194+
} else {
1195+
$(this).val('');
1196+
}
1197+
}
11981198
else if (includeHidden) {
11991199
// includeHidden can be the value true, or it can be a selector string
12001200
// indicating a special test; for example:
@@ -1275,4 +1275,3 @@ function log() {
12751275
}
12761276

12771277
}));
1278-

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"upload",
88
"ajax"
99
],
10-
"version": "3.50.0",
10+
"version": "3.51.0",
1111
"author": {
1212
"name": "M. Alsup",
1313
"url": "http://jquery.malsup.com"

0 commit comments

Comments
 (0)