X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fajax.js;h=9886fd70f9273cc7736df5ebe0c5c4cb8fb96e40;hb=6dfdb14753c66cfd38f8445bd6119ef4a1274d5e;hp=cc871330df16fbbc0216182f11f2ed8ee3ec974e;hpb=9dc6e0c572b9c809a3a4c123071d96d48a01dd1c;p=jquery.git diff --git a/src/ajax.js b/src/ajax.js index cc87133..9886fd7 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -10,6 +10,7 @@ var jsc = jQuery.now(), rts = /([?&])_=[^&]*(&?)/, rurl = /^(\w+:)?\/\/([^\/?#]+)/, r20 = /%20/g, + rhash = /#.*$/, // Keep a copy of the old load method _load = jQuery.fn.load; @@ -205,6 +206,7 @@ jQuery.extend({ var s = jQuery.extend(true, {}, jQuery.ajaxSettings, origSettings), jsonp, status, data, type = s.type.toUpperCase(); + s.url = s.url.replace( rhash, "" ); s.context = origSettings && origSettings.context || s; // convert data if not already a string