commit
83100d6f71
|
@ -3375,8 +3375,8 @@ Snap.ajax = function (url, postData, callback, scope){
|
||||||
postData = pd.join("&");
|
postData = pd.join("&");
|
||||||
}
|
}
|
||||||
req.open((postData ? "POST" : "GET"), url, true);
|
req.open((postData ? "POST" : "GET"), url, true);
|
||||||
req.setRequestHeader("X-Requested-With", "XMLHttpRequest");
|
|
||||||
if (postData) {
|
if (postData) {
|
||||||
|
req.setRequestHeader("X-Requested-With", "XMLHttpRequest");
|
||||||
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
|
||||||
}
|
}
|
||||||
if (callback) {
|
if (callback) {
|
||||||
|
|
Loading…
Reference in New Issue