aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authortschicke-brown <tyler_schicke@brown.edu>2019-06-27 12:04:40 -0400
committerGitHub <noreply@github.com>2019-06-27 12:04:40 -0400
commitc0bbdabe7d2e1eb422a12697848ada7127c6e2dc (patch)
treea4e335659205be8e3ed339c9a8f226e4f4bbc378 /src/client/documents/Documents.ts
parentc5c181aea773eaf2cfb5cf1f6fc186e753665a81 (diff)
parent3fe6ec528a81e028bd0a72e87a67304f255ee702 (diff)
Merge pull request #174 from browngraphicslab/monika_temp
search fixed for merge
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 6dc98dbbc..7d7a1f02a 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -97,9 +97,10 @@ export namespace DocUtils {
let linkDocProto = Doc.GetProto(linkDoc);
linkDocProto.context = targetContext;
- linkDocProto.title = title; //=== "" ? source.title + " to " + target.title : title;
+ linkDocProto.title = title === "" ? source.title + " to " + target.title : title;
linkDocProto.linkDescription = description;
linkDocProto.linkTags = tags;
+ linkDocProto.type = DocTypes.LINK;
linkDocProto.anchor1 = source;
linkDocProto.anchor1Page = source.curPage;