Merge branch 'master' of camlistore.org:camlistore

This commit is contained in:
Brad Fitzpatrick 2011-05-30 18:35:21 -07:00
commit 6b9cba7cf0
1 changed files with 10 additions and 7 deletions

View File

@ -71,13 +71,16 @@ window.addEventListener("load", function (e) {
alert("blob " + permanode + " isn't a permanode");
return;
}
if (permanodeObject.attr.name && permanodeObject.attr.name.length == 1) {
var inputName = document.getElementById("inputName");
inputName.value = permanodeObject.attr.name[0];
inputName.disabled = null;
var btnSave = document.getElementById("btnSave");
btnSave.disabled = null;
}
var inputName = document.getElementById("inputName");
inputName.value =
(permanodeObject.attr.name && permanodeObject.attr.name.length == 1) ?
permanodeObject.attr.name[0] :
"";
inputName.disabled = null;
var btnSave = document.getElementById("btnSave");
btnSave.disabled = null;
},
failure: function(msg) { alert("failed to get blob description: " + msg); }
});