Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
15 changed files
with
32 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -80,25 +80,26 @@ jQuery.fn.extend({ | ||
return jQuery.param( this.serializeArray() ); | ||
}, | ||
serializeArray: function() { | ||
return this.map(function(){ | ||
return this.map(function() { | ||
// Can add propHook for "elements" to filter or add form elements | ||
var elements = jQuery.prop( this, "elements" ); | ||
return elements ? jQuery.makeArray( elements ) : this; | ||
}) | ||
.filter(function(){ | ||
.filter(function() { | ||
var type = this.type; | ||
// Use .is(":disabled") so that fieldset[disabled] works | ||
|
||
// Use .is( ":disabled" ) so that fieldset[ disabled ] works | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
gibson042
Member
|
||
return this.name && !jQuery( this ).is( ":disabled" ) && | ||
rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && | ||
( this.checked || !rcheckableType.test( type ) ); | ||
}) | ||
.map(function( i, elem ){ | ||
.map(function( i, elem ) { | ||
var val = jQuery( this ).val(); | ||
|
||
return val == null ? | ||
null : | ||
jQuery.isArray( val ) ? | ||
jQuery.map( val, function( val ){ | ||
jQuery.map( val, function( val ) { | ||
return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; | ||
}) : | ||
{ name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; | ||
That's probably a bit much.😉