Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed ajax array arguments in $.param
  • Loading branch information
Sean Catchpole committed Jul 26, 2007
1 parent f8b0005 commit 8a80d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ajax/ajax.js
Expand Up @@ -794,7 +794,7 @@ jQuery.extend({
// If the value is an array then the key names need to be repeated
if ( a[j] && a[j].constructor == Array )
jQuery.each( a[j], function(){
s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) );
s.push( encodeURIComponent(j) + "[]=" + encodeURIComponent( this ) );
});
else
s.push( encodeURIComponent(j) + "=" + encodeURIComponent( a[j] ) );
Expand Down

0 comments on commit 8a80d05

Please sign in to comment.