diff options
author | bobzel <zzzman@gmail.com> | 2023-04-17 15:19:13 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-04-17 15:19:13 -0400 |
commit | 2c154f328d6556d99f21a778c8d78b41de77f5c9 (patch) | |
tree | 200607bf64a0be390e62121aa023e1f255e2ea12 /src/client/util/CurrentUserUtils.ts | |
parent | 3c8cb517c811f94dce1e3d8430e07af316642365 (diff) | |
parent | 57983d95ceeb364e3e0a282daea13035114ddb3f (diff) |
Merge branch 'master' into advanced-trails
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r-- | src/client/util/CurrentUserUtils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index 76ea3e3ea..abf7313a4 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -110,7 +110,7 @@ export class CurrentUserUtils { const tempClicks = DocCast(doc[field]); const reqdClickOpts:DocumentOptions = {_width: 300, _height:200, system: true}; const reqdTempOpts:{opts:DocumentOptions, script: string}[] = [ - { opts: { title: "Open In Target", targetScriptKey: "onChildClick"}, script: "docCast(thisContainer.target).then((target) => target && (target.proto.data = new List([self])))"}, + { opts: { title: "Open In Target", targetScriptKey: "onChildClick"}, script: "docCast(documentView?.props.docViewPath().lastElement()?.rootDoc.target).then((target) => target && (target.proto.data = new List([self])))"}, { opts: { title: "Open Detail On Right", targetScriptKey: "onChildDoubleClick"}, script: `openDoc(self.doubleClickView.${OpenWhere.addRight})`}]; const reqdClickList = reqdTempOpts.map(opts => { const allOpts = {...reqdClickOpts, ...opts.opts}; |