|
|
|
@ -460,7 +460,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) {
|
|
|
|
@ -489,6 +489,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");
|
|
|
|
@ -837,7 +844,7 @@ define([
|
|
|
|
|
driveEvents: rdyCfg.driveEvents
|
|
|
|
|
};
|
|
|
|
|
if (sessionStorage[Constants.newPadPathKey]) {
|
|
|
|
|
cfg.initialPath = sessionStorage[Constants.newPadPathKey];
|
|
|
|
|
common.initialPath = sessionStorage[Constants.newPadPathKey];
|
|
|
|
|
delete sessionStorage[Constants.newPadPathKey];
|
|
|
|
|
}
|
|
|
|
|
AStore.query("CONNECT", cfg, waitFor(function (data) {
|
|
|
|
|