aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-09-23 13:27:38 -0400
committerbob <bcz@cs.brown.edu>2019-09-23 13:27:38 -0400
commit9fbdb0088bb42235bb530602c5275e015f2609bd (patch)
tree99de655f052bb939cc4233f8bdace29e2e228fed /src/client/documents/Documents.ts
parent81551fad8582129bc05581cdd132cada5e9f23db (diff)
restructured link following to text regions
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 079ff00db..4ae770e25 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -638,9 +638,6 @@ export namespace DocUtils {
});
}
export function MakeLink(source: Doc, target: Doc, targetContext?: Doc, title: string = "", description: string = "", sourceContext?: Doc, id?: string, anchored1?: boolean) {
- // if (LinkManager.Instance.doesLinkExist(source, target)) return undefined;
- if (LinkManager.Instance.doesNormalLinkExist(source, target) && description !== "in-text link being created") return undefined; // normal describes the type of link attempting to be created
- // if normal link already exists and !normal (in text link is not being created) then return
let sv = DocumentManager.Instance.getDocumentView(source);
if (sv && sv.props.ContainingCollectionDoc === target) return;
if (target === CurrentUserUtils.UserDocument) return undefined;