mirror of https://github.com/perkeep/perkeep.git
add camliBlobURL and link
This commit is contained in:
parent
7de40d3b5c
commit
fbed27fb0d
|
@ -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>";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue