aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Serduke <davidserduke@gmail.com>2007-12-12 20:54:44 +0000
committerDavid Serduke <davidserduke@gmail.com>2007-12-12 20:54:44 +0000
commite1af5faf80ff9a457bcb78757c3eb04b55e931d1 (patch)
treeb14e9cf10b266b79b87829391b6cc666ff55b2e8 /src
parent58c640fb1ce09a03399a3a441716cca23f3f2d04 (diff)
downloadjquery-e1af5faf80ff9a457bcb78757c3eb04b55e931d1.tar.gz
jquery-e1af5faf80ff9a457bcb78757c3eb04b55e931d1.zip
Fixed #1750 by adding a url that starts with "//" and is a dataType "script" will now use a cross domain load the same as urls that start with "http".
Diffstat (limited to 'src')
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index bf0cf109f..35995f6b6 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -219,7 +219,7 @@ jQuery.extend({
// If we're requesting a remote document
// and trying to load JSON or Script with a GET
- if ( !s.url.indexOf("http") && ( s.dataType == "script" || s.dataType =="json" ) && s.type.toLowerCase() == "get" ) {
+ if ( (!s.url.indexOf("http") || !s.url.indexOf("//")) && ( s.dataType == "script" || s.dataType =="json" ) && s.type.toLowerCase() == "get" ) {
var head = document.getElementsByTagName("head")[0];
var script = document.createElement("script");
script.src = s.url;