add camliBlobURL and link

This commit is contained in:
Brad Fitzpatrick 2011-05-30 18:10:07 -07:00
parent 7de40d3b5c
commit fbed27fb0d
2 changed files with 6 additions and 3 deletions

View File

@ -43,7 +43,7 @@ function blobInfoUpdate(bmap) {
fail: alert
});
} else {
document.getElementById("blobdata").innerHTML = "Unknown/binary data; <a href='" + camliBlobUrl(blobref) + "'>download</a>";
document.getElementById("blobdata").innerHTML = "Unknown/binary data; <a href='" + camliBlobURL(blobref) + "'>download</a>";
}
}

View File

@ -108,11 +108,14 @@ function camliGetBlobContents(blobref, opts) {
}
opts.success(xhr.responseText);
};
var path = disco.blobRoot + "camli/" + blobref;
xhr.open("GET", path, true);
xhr.open("GET", camliBlobURL(blobref), true);
xhr.send();
}
function camliBlobURL(blobref) {
return disco.blobRoot + "camli/" + blobref;
}
function camliSign(clearObj, opts) {
opts = saneOpts(opts);