aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-07-31 08:36:13 -0400
committerbob <bcz@cs.brown.edu>2019-07-31 08:36:13 -0400
commit548d23c3bf200579e5d179b7362599508ca67be2 (patch)
treef8718c00abd9bf26cb1a872d9f027576a9a885af /src
parentf2fab81888cfd9d961b234d6ee35eb4f095c7ede (diff)
added minilayout and detailedlayout to applyTemplate
Diffstat (limited to 'src')
-rw-r--r--src/new_fields/Doc.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index dab0f9070..c889fae31 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -471,8 +471,12 @@ export namespace Doc {
Doc.GetProto(target).type = DocumentType.TEMPLATE;
if (targetData && targetData.layout === target) {
targetData.layout = temp;
+ targetData.miniLayout = StrCast(templateDoc.miniLayout);
+ targetData.detailedLayout = targetData.layout;
} else {
target.layout = temp;
+ target.miniLayout = StrCast(templateDoc.miniLayout);
+ target.detailedLayout = target.layout;
}
}