|
|
|
@ -215,7 +215,9 @@ define([
|
|
|
|
|
defaultTitle: defaultName
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
obj.metadata.title = APP.title;
|
|
|
|
|
if (!initializing) {
|
|
|
|
|
obj.metadata.title = APP.title;
|
|
|
|
|
}
|
|
|
|
|
if (textColor) {
|
|
|
|
|
obj.metadata.color = textColor;
|
|
|
|
|
}
|
|
|
|
@ -383,6 +385,7 @@ define([
|
|
|
|
|
var updateMetadata = function(shjson) {
|
|
|
|
|
// Extract the user list (metadata) from the hyperjson
|
|
|
|
|
var json = (shjson === "") ? "" : JSON.parse(shjson);
|
|
|
|
|
var titleUpdated = false;
|
|
|
|
|
if (json && json.metadata) {
|
|
|
|
|
if (json.metadata.users) {
|
|
|
|
|
var userData = json.metadata.users;
|
|
|
|
@ -394,9 +397,13 @@ define([
|
|
|
|
|
}
|
|
|
|
|
if (typeof json.metadata.title !== "undefined") {
|
|
|
|
|
updateTitle(json.metadata.title || defaultName);
|
|
|
|
|
titleUpdated = true;
|
|
|
|
|
}
|
|
|
|
|
updateColors(json.metadata.color, json.metadata.backColor);
|
|
|
|
|
}
|
|
|
|
|
if (!titleUpdated) {
|
|
|
|
|
updateTitle(defaultName);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var renameCb = function (err, title) {
|
|
|
|
|