diff options
author | bob <bcz@cs.brown.edu> | 2019-07-31 08:36:13 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-07-31 08:36:13 -0400 |
commit | 548d23c3bf200579e5d179b7362599508ca67be2 (patch) | |
tree | f8718c00abd9bf26cb1a872d9f027576a9a885af | |
parent | f2fab81888cfd9d961b234d6ee35eb4f095c7ede (diff) |
added minilayout and detailedlayout to applyTemplate
-rw-r--r-- | src/new_fields/Doc.ts | 4 |
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; } } |