aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-05-30 10:51:00 -0400
committerbob <bcz@cs.brown.edu>2019-05-30 10:51:00 -0400
commit37e16bb59a38c000ba80312a0661e1f54c93f3c6 (patch)
tree0a9669b43a43478be1ea0e5d9c0c421d3c9a6533 /src/client/documents/Documents.ts
parent83edfcd06b659839f161121728de02aca91d4af8 (diff)
cleaned up event handling for documentviews. fixed context menu closing.
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index fffada459..ab61b915c 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -295,7 +295,7 @@ export namespace Docs {
return CreateInstance(webProto, new HtmlField(html), options);
}
export function KVPDocument(document: Doc, options: DocumentOptions = {}) {
- return CreateInstance(kvpProto, document, options);
+ return CreateInstance(kvpProto, document, { title: document.title + ".kvp", ...options });
}
export function FreeformDocument(documents: Array<Doc>, options: DocumentOptions, makePrototype: boolean = true) {
if (!makePrototype) {