aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2019-06-21 17:41:20 -0400
committerFawn <fangrui_tong@brown.edu>2019-06-21 17:41:20 -0400
commit32ef8d83d5829e2faadbebaf6f9b694df5d7ea02 (patch)
tree43105f51af6e03af2ddfed7fe4f2983793829539 /src/client/documents/Documents.ts
parent7962aff8431b692af5229cd8e6c390bbe1110336 (diff)
link menu styling
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 7cef48b98..64032e096 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -90,7 +90,7 @@ export namespace DocUtils {
// export function MakeLink(source: Doc, target: Doc, targetContext?: Doc, title: string = "", description: string = "", tags: string = "Default") {
// let protoSrc = source.proto ? source.proto : source;
// let protoTarg = target.proto ? target.proto : target;
- export function MakeLink(source: Doc, target: Doc, targetContext?: Doc) {
+ export function MakeLink(source: Doc, target: Doc, targetContext?: Doc, title: string = "", description: string = "", tags: string = "Default") {
if (LinkManager.Instance.doesLinkExist(source, target)) {
console.log("LINK EXISTS"); return;
}
@@ -99,9 +99,10 @@ export namespace DocUtils {
let linkDoc = Docs.TextDocument({ width: 100, height: 30, borderRounding: -1 });
let linkDocProto = Doc.GetProto(linkDoc);
- // linkDocProto.title = title === "" ? source.title + " to " + target.title : title;
- // linkDocProto.linkDescription = description;
- // linkDocProto.linkTags = tags;
+
+ linkDocProto.title = title; //=== "" ? source.title + " to " + target.title : title;
+ linkDocProto.linkDescription = description;
+ linkDocProto.linkTags = tags;
linkDocProto.anchor1 = source;
linkDocProto.anchor1Page = source.curPage;