diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-03-10 15:40:40 -0500 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-03-10 15:40:40 -0500 |
commit | 55aeb2f80dd48e758fcf6b957233d4949c4b063e (patch) | |
tree | 1f9910700e21a1594ed65dfed2a05cb704c4eff4 /src/fields/Doc.ts | |
parent | 89b7b2ae27cbab6a7edd5fa3759949afe2cd2f71 (diff) | |
parent | 11b6bd8eca19b36fdd28f71a7fc4043134983c5e (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into filters
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index c2f5efadc..75d15c409 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -1160,7 +1160,6 @@ export namespace Doc { case DocumentType.PRES: return "tv"; case DocumentType.SCRIPTING: return "terminal"; case DocumentType.IMPORT: return "cloud-upload-alt"; - case DocumentType.DOCHOLDER: return "expand"; case DocumentType.VID: return "video"; case DocumentType.INK: return "pen-nib"; case DocumentType.PDF: return "file-pdf"; @@ -1335,7 +1334,7 @@ Scripting.addGlobal(function activePresentationItem() { }); Scripting.addGlobal(function selectedDocs(container: Doc, excludeCollections: boolean, prevValue: any) { const docs = SelectionManager.Views().map(dv => dv.props.Document). - filter(d => !Doc.AreProtosEqual(d, container) && !d.annotationOn && d.type !== DocumentType.DOCHOLDER && d.type !== DocumentType.KVP && + filter(d => !Doc.AreProtosEqual(d, container) && !d.annotationOn && d.type !== DocumentType.KVP && (!excludeCollections || d.type !== DocumentType.COL || !Cast(d.data, listSpec(Doc), null))); return docs.length ? new List(docs) : prevValue; }); |