mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fixed bug #215
This commit is contained in:
parent
08d865862a
commit
7654d3b833
@ -298,7 +298,8 @@ jQuery.extend({
|
||||
data = null;
|
||||
}
|
||||
|
||||
if ( data ) url += "?" + jQuery.param(data);
|
||||
// append ? + data or & + data, in case there are already params
|
||||
if ( data ) url += ((url.indexOf("?") > -1) ? "&" : "?") + jQuery.param(data);
|
||||
|
||||
// Build and start the HTTP Request
|
||||
jQuery.ajax( "GET", url, null, function(r, status) {
|
||||
|
Loading…
Reference in New Issue
Block a user