aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2020-01-22 12:08:20 -0500
committerbob <bcz@cs.brown.edu>2020-01-22 12:08:20 -0500
commit5a6f6868dc25b2b24c6c7f4a7bc25670e6a35f47 (patch)
tree31cf7400f701dd215c6004a02a59bb72fb2ea3d0 /src/new_fields/Doc.ts
parent17c4ca6f517ab786f3c6b269c95a9b5ae4b0ff9a (diff)
fixed template/scripting problem. added collectionDoc parameter for onClick scripts. made buxton layout update hero image on click.
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r--src/new_fields/Doc.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index 674c7cc25..9620f753f 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -614,7 +614,7 @@ export namespace Doc {
templateField.templateField = metadataFieldKey;
templateField.isTemplateField = true;
templateField.title = metadataFieldKey;
- templateField.showTitle = suppressTitle ? undefined : "title";
+ // templateField.showTitle = suppressTitle ? undefined : "title";
// move any data that the template field had been rendering over to the template doc so that things will
// appear the same after the conversion to a template has completed. (otherwise, there would be no data for the template to render)
@@ -636,9 +636,6 @@ export namespace Doc {
templateField.defaultBackgroundColor = templateField.backgroundColor;
}
- // finally, make the templateField be a delegate of the templateDoc so that it can find all the fields needed to render itselt
- // (note that this is only useful to see the template doc itself which may not be necessary for many use cases)
- templateField.proto = templateDoc;
return true;
}