From ef574303f39e83fd2a6481e4a7e2eef0a70b4691 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 10 Mar 2021 13:28:32 -0500 Subject: fixed bugs leftover from removing docholders. --- src/client/documents/DocumentTypes.ts | 1 - src/client/documents/Documents.ts | 4 ---- 2 files changed, 5 deletions(-) (limited to 'src/client/documents') diff --git a/src/client/documents/DocumentTypes.ts b/src/client/documents/DocumentTypes.ts index 58b120e7d..851e78336 100644 --- a/src/client/documents/DocumentTypes.ts +++ b/src/client/documents/DocumentTypes.ts @@ -33,7 +33,6 @@ export enum DocumentType { PRESELEMENT = "preselement",// presentation item (view of a document in a collection) COLOR = "color", // color picker (view of a color picker for a color string) YOUTUBE = "youtube", // youtube directory (view of you tube search results) - DOCHOLDER = "docholder", // nested document (view of a document) SEARCHITEM = "searchitem", COMPARISON = "comparison", // before/after view with slider (view of 2 images) GROUP = "group", // group of users diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 357b82cd6..1726c42d3 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -833,10 +833,6 @@ export namespace Docs { return InstanceFromProto(Prototypes.get(DocumentType.KVP), document, { _fitWidth: true, title: document.title + ".kvp", ...options }); } - export function DocumentDocument(document?: Doc, options: DocumentOptions = {}) { - return InstanceFromProto(Prototypes.get(DocumentType.DOCHOLDER), document, { title: document ? document.title + "" : "container", targetDropAction: "move", ...options }); - } - export function TextanchorDocument(options: DocumentOptions = {}, id?: string) { return InstanceFromProto(Prototypes.get(DocumentType.TEXTANCHOR), undefined, { targetDropAction: "move", ...options }, id); } -- cgit v1.2.3-70-g09d2