Skip to content
Permalink
Browse files
Fixed bug #215
  • Loading branch information
jzaefferer committed Oct 1, 2006
1 parent 08d8658 commit 7654d3b833c0161aacc66abd6d861f53f9d8c395
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/ajax/ajax.js
@@ -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) {

0 comments on commit 7654d3b

Please sign in to comment.