aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/LinkManager.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-02-12 12:17:44 -0500
committerbobzel <zzzman@gmail.com>2021-02-12 12:17:44 -0500
commitd0607264d955d90eca8178d5bfbc6a72f47fa872 (patch)
tree3320a09e7f113f87dfbb1b7d9155605fa7a3f1b1 /src/client/util/LinkManager.ts
parent4a9d6d1409327fd99c5f554caebd917a316db32b (diff)
fixed subtle bug with lightbox inadvertently clearing out childDoc list of a collection. added shift-double-cllick to open collection in lightbox.
Diffstat (limited to 'src/client/util/LinkManager.ts')
-rw-r--r--src/client/util/LinkManager.ts8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts
index d433605f1..c39a4abda 100644
--- a/src/client/util/LinkManager.ts
+++ b/src/client/util/LinkManager.ts
@@ -106,12 +106,8 @@ export class LinkManager {
// open up target if it's not already in view ...
const createViewFunc = (doc: Doc, followLoc: string, finished?: Opt<() => void>) => {
const createTabForTarget = (didFocus: boolean) => new Promise<boolean>(res => {
- const where = StrCast(sourceDoc.followLinkLocation) || followLoc;
- if (LightboxView.LightboxDoc) {
- LightboxView.SetLightboxDoc(doc);
- } else {
- docViewProps.addDocTab(doc, where);
- }
+ const where = LightboxView.LightboxDoc ? "lightbox" : StrCast(sourceDoc.followLinkLocation) || followLoc;
+ docViewProps.addDocTab(doc, where);
setTimeout(() => {
const targDocView = DocumentManager.Instance.getFirstDocumentView(doc);
if (targDocView) {