diff options
author | bob <bcz@cs.brown.edu> | 2019-09-13 11:15:01 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-09-13 11:15:01 -0400 |
commit | 106d7ca39e36fc114f79fd5fef27998a68fd3d5b (patch) | |
tree | e7522ce7a2df2980390661ed4a834506f8730be8 /src/new_fields/Doc.ts | |
parent | 32861c7cfcac8c03be5692fb98b5a7dc7786be83 (diff) |
fixed video w/ templates. changed headings with text boxes, tweaked MakeTemplate titling
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index 29925feb8..6f7453bbe 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -558,7 +558,8 @@ export namespace Doc { } } - export function MakeTemplate(fieldTemplate: Doc, metaKey: string, templateDataDoc: Doc) { + export function MakeTemplate(fieldTemplate: Doc, metaKeyRaw: string, templateDataDoc: Doc) { + let metaKey = metaKeyRaw.replace(/^-/, "").replace(/\([0-9]*\)$/, ""); // move data doc fields to layout doc as needed (nativeWidth/nativeHeight, data, ??) let backgroundLayout = StrCast(fieldTemplate.backgroundLayout); let fieldLayoutDoc = fieldTemplate; |