aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-07-19 14:42:39 -0400
committerbob <bcz@cs.brown.edu>2019-07-19 14:42:39 -0400
commitae07ba8fb410752ea98702219247ce5f89d1758b (patch)
tree0e4de37afccc8950648bf9c1d68207c460640a21 /src/new_fields/Doc.ts
parent2b98b5484b942361ab5e271fe9e09d09dc83fa60 (diff)
fixes for templates and stacking views
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r--src/new_fields/Doc.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index 7bf1dec53..152a48e5f 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -11,6 +11,7 @@ import { ToScriptString, SelfProxy, Parent, OnUpdate, Self, HandleUpdate, Update
import { scriptingGlobal } from "../client/util/Scripting";
import { List } from "./List";
import { string } from "prop-types";
+import { DocumentType } from "../client/documents/Documents";
export namespace Field {
export function toKeyValueString(doc: Doc, key: string): string {
@@ -422,6 +423,7 @@ export namespace Doc {
fieldTemplate.nativeHeight = nh;
fieldTemplate.isTemplate = true;
fieldTemplate.showTitle = "title";
+ fieldTemplate.type = DocumentType.TEMPLATE;
setTimeout(() => fieldTemplate.proto = proto);
}