|
|
|
@ -468,7 +468,7 @@ define([
|
|
|
|
|
if (typeof(meta) === "object") {
|
|
|
|
|
meta.defaultTitle = meta.title || meta.defaultTitle;
|
|
|
|
|
delete meta.users;
|
|
|
|
|
delete meta.title;
|
|
|
|
|
meta.title = "";
|
|
|
|
|
}
|
|
|
|
|
val = JSON.stringify(parsed);
|
|
|
|
|
} catch (e) {
|
|
|
|
@ -497,6 +497,13 @@ define([
|
|
|
|
|
if (typeof (data.title) !== "string") { return cb('Missing title'); }
|
|
|
|
|
if (data.title.trim() === "") { data.title = Hash.getDefaultName(parsed); }
|
|
|
|
|
|
|
|
|
|
if (common.initialPath) {
|
|
|
|
|
if (!data.path) {
|
|
|
|
|
data.path = common.initialPath;
|
|
|
|
|
delete common.initialPath;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
postMessage("SET_PAD_TITLE", data, function (obj) {
|
|
|
|
|
if (obj && obj.error) {
|
|
|
|
|
console.log("unable to set pad title");
|
|
|
|
@ -892,7 +899,7 @@ define([
|
|
|
|
|
driveEvents: rdyCfg.driveEvents // Boolean
|
|
|
|
|
};
|
|
|
|
|
if (sessionStorage[Constants.newPadPathKey]) {
|
|
|
|
|
cfg.initialPath = sessionStorage[Constants.newPadPathKey];
|
|
|
|
|
common.initialPath = sessionStorage[Constants.newPadPathKey];
|
|
|
|
|
delete sessionStorage[Constants.newPadPathKey];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|