Skip to content
Permalink
Browse files

Fixed ajax array arguments in $.param

  • Loading branch information
Sean Catchpole
Sean Catchpole committed Jul 26, 2007
1 parent f8b0005 commit 8a80d05a446ac7ac8a95459fb68932ddf539ff62
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ajax/ajax.js
@@ -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] ) );

0 comments on commit 8a80d05

Please sign in to comment.
You can’t perform that action at this time.