diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-03-12 11:21:34 -0500 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-03-12 11:21:34 -0500 |
commit | 9be5d339fa2e6d79a68f5265fa56f34ecf9a8141 (patch) | |
tree | 0fc5cb793bf1a3bee2f5e2d461a2286722a6f7b5 /src/client/documents/Documents.ts | |
parent | 983957cf513b355d043ad8a712475f344eb7b553 (diff) | |
parent | 2f5051296883d3473e2eb1df648d27a0102d04ed (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into filters
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 5ceb62cbe..d9ada89ea 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -664,7 +664,7 @@ export namespace Docs { viewDoc["acl-Override"] = dataDoc["acl-Override"] = "None"; !Doc.IsSystem(dataDoc) && ![DocumentType.PDFANNO, DocumentType.LINK, DocumentType.LINKANCHOR, DocumentType.TEXTANCHOR].includes(proto.type as any) && - !protoProps.annotationOn && Doc.AddDocToList(Cast(Doc.UserDoc().myFileOrphans, Doc, null), "data", dataDoc); + !dataDoc.isFolder && !protoProps.annotationOn && Doc.AddDocToList(Cast(Doc.UserDoc().myFileOrphans, Doc, null), "data", dataDoc); return Doc.assign(viewDoc, delegateProps, true); } @@ -815,7 +815,7 @@ export namespace Docs { export function PdfDocument(url: string, options: DocumentOptions = {}) { const pdfProto = Prototypes.get(DocumentType.PDF); pdfProto._fitWidth = true; // backward compatibility -- can be removed after db is reset - return InstanceFromProto(pdfProto, new PdfField(new URL(url)), options); + return InstanceFromProto(pdfProto, new PdfField(new URL(url)), { _viewType: "stacking", ...options }); } export function WebDocument(url: string, options: DocumentOptions = {}) { @@ -1062,7 +1062,7 @@ export namespace DocUtils { const val = Cast(d[key], "number", null); if (val < min || val > max) return false; if (val === undefined) { - console.log("Should 'undefined' pass range filter or not?") + //console.log("Should 'undefined' pass range filter or not?") } } return true; |