From fbed27fb0d7b1b277b4dceb898dd86ad92a6fc66 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 30 May 2011 18:10:07 -0700 Subject: [PATCH] add camliBlobURL and link --- server/go/camlistored/ui/blobinfo.js | 2 +- server/go/camlistored/ui/camli.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/server/go/camlistored/ui/blobinfo.js b/server/go/camlistored/ui/blobinfo.js index 05b3459d0..ba5c9ed5b 100644 --- a/server/go/camlistored/ui/blobinfo.js +++ b/server/go/camlistored/ui/blobinfo.js @@ -43,7 +43,7 @@ function blobInfoUpdate(bmap) { fail: alert }); } else { - document.getElementById("blobdata").innerHTML = "Unknown/binary data; download"; + document.getElementById("blobdata").innerHTML = "Unknown/binary data; download"; } } diff --git a/server/go/camlistored/ui/camli.js b/server/go/camlistored/ui/camli.js index f674a772b..403b3a152 100644 --- a/server/go/camlistored/ui/camli.js +++ b/server/go/camlistored/ui/camli.js @@ -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);