Update JQuery Form to version 3.51

This commit is contained in:
Michael RICOIS 2014-12-12 13:12:50 +00:00
parent 08b5fc1917
commit 77233c2eff
2 changed files with 21 additions and 18 deletions

View File

@ -1,8 +1,8 @@
/*! /*!
* jQuery Form Plugin * jQuery Form Plugin
* version: 3.50.0-2014.02.05 * version: 3.51.0-2014.06.20
* Requires jQuery v1.5 or later * Requires jQuery v1.5 or later
* Copyright (c) 2013 M. Alsup * Copyright (c) 2014 M. Alsup
* Examples and documentation at: http://malsup.com/jquery/form/ * Examples and documentation at: http://malsup.com/jquery/form/
* Project repository: https://github.com/malsup/form * Project repository: https://github.com/malsup/form
* Dual licensed under the MIT and GPL licenses. * Dual licensed under the MIT and GPL licenses.
@ -956,7 +956,7 @@ $.fn.formToArray = function(semantic, elements) {
// #386; account for inputs outside the form which use the 'form' attribute // #386; account for inputs outside the form which use the 'form' attribute
if ( formId ) { if ( formId ) {
els2 = $(':input[form=' + formId + ']').get(); els2 = $(':input[form="' + formId + '"]').get(); // hat tip @thet
if ( els2.length ) { if ( els2.length ) {
els = (els || []).concat(els2); els = (els || []).concat(els2);
} }
@ -1188,13 +1188,13 @@ $.fn.clearFields = $.fn.clearInputs = function(includeHidden) {
else if (tag == 'select') { else if (tag == 'select') {
this.selectedIndex = -1; this.selectedIndex = -1;
} }
else if (t == "file") { else if (t == "file") {
if (/MSIE/.test(navigator.userAgent)) { if (/MSIE/.test(navigator.userAgent)) {
$(this).replaceWith($(this).clone(true)); $(this).replaceWith($(this).clone(true));
} else { } else {
$(this).val(''); $(this).val('');
} }
} }
else if (includeHidden) { else if (includeHidden) {
// includeHidden can be the value true, or it can be a selector string // includeHidden can be the value true, or it can be a selector string
// indicating a special test; for example: // indicating a special test; for example:
@ -1275,4 +1275,3 @@ function log() {
} }
})); }));

File diff suppressed because one or more lines are too long