mirror of https://github.com/perkeep/perkeep.git
Minor JS cleanups
Change-Id: I2d0628a3438ad6298e6c119ff7bd89e954871533
This commit is contained in:
parent
2347f4b2c2
commit
5905638de3
|
@ -22,7 +22,7 @@ function getBlobParam() {
|
||||||
|
|
||||||
function blobInfoUpdate(bmap) {
|
function blobInfoUpdate(bmap) {
|
||||||
var blobmeta = document.getElementById('blobmeta');
|
var blobmeta = document.getElementById('blobmeta');
|
||||||
var bd = document.getElementById("blobdownload")
|
var bd = document.getElementById("blobdownload");
|
||||||
bd.innerHTML = "";
|
bd.innerHTML = "";
|
||||||
var blobref = getBlobParam();
|
var blobref = getBlobParam();
|
||||||
if (!blobref) {
|
if (!blobref) {
|
||||||
|
@ -36,9 +36,7 @@ function blobInfoUpdate(bmap) {
|
||||||
}
|
}
|
||||||
blobmeta.innerHTML = JSON.stringify(binfo, null, 2);
|
blobmeta.innerHTML = JSON.stringify(binfo, null, 2);
|
||||||
if (binfo.camliType || (binfo.type && binfo.type.indexOf("text/") == 0)) {
|
if (binfo.camliType || (binfo.type && binfo.type.indexOf("text/") == 0)) {
|
||||||
camliGetBlobContents(
|
camliGetBlobContents(blobref, {
|
||||||
blobref,
|
|
||||||
{
|
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
document.getElementById("blobdata").innerHTML = linkifyBlobRefs(data);
|
document.getElementById("blobdata").innerHTML = linkifyBlobRefs(data);
|
||||||
var bb = document.getElementById('blobbrowse');
|
var bb = document.getElementById('blobbrowse');
|
||||||
|
@ -77,9 +75,7 @@ function blobInfoUpdate(bmap) {
|
||||||
|
|
||||||
var claims = document.getElementById("claimsdiv");
|
var claims = document.getElementById("claimsdiv");
|
||||||
claims.style.visibility = "";
|
claims.style.visibility = "";
|
||||||
camliGetPermanodeClaims(
|
camliGetPermanodeClaims(blobref, {
|
||||||
blobref,
|
|
||||||
{
|
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
document.getElementById("claims").innerHTML = linkifyBlobRefs(JSON.stringify(data, null, 2));
|
document.getElementById("claims").innerHTML = linkifyBlobRefs(JSON.stringify(data, null, 2));
|
||||||
},
|
},
|
||||||
|
@ -101,9 +97,7 @@ function blobInfoOnLoad() {
|
||||||
|
|
||||||
var blobdescribe = document.getElementById('blobdescribe');
|
var blobdescribe = document.getElementById('blobdescribe');
|
||||||
blobdescribe.innerHTML = "<a href='" + camliDescribeBlogURL(blobref) + "'>describe</a>";
|
blobdescribe.innerHTML = "<a href='" + camliDescribeBlogURL(blobref) + "'>describe</a>";
|
||||||
camliDescribeBlob(
|
camliDescribeBlob(blobref, {
|
||||||
blobref,
|
|
||||||
{
|
|
||||||
success: blobInfoUpdate,
|
success: blobInfoUpdate,
|
||||||
fail: function(msg) {
|
fail: function(msg) {
|
||||||
alert("Error describing blob " + blobref + ": " + msg);
|
alert("Error describing blob " + blobref + ": " + msg);
|
||||||
|
|
Loading…
Reference in New Issue