aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-02-13 16:38:09 -0500
committeryipstanley <stanley_yip@brown.edu>2019-02-13 16:38:09 -0500
commit430878f6dd8d36b1322e15d0898ada0d44fecacb (patch)
tree027fb9b578a3fee8d97b16922a930806da00afaa /src/client/documents/Documents.ts
parent2eb147ab8f25e6dd90f47cf21499c7340642f0c9 (diff)
Asdfjkla/sdfklj
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 6925234fe..460bf9b23 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -120,19 +120,20 @@ export namespace Documents {
imageProto.Set(KeyStore.Layout, new TextField(ImageBox.LayoutString()));
// imageProto.SetField(KeyStore.Layout, new TextField('<div style={"background-image: " + {Data}} />'));
imageProto.Set(KeyStore.LayoutKeys, new ListField([KeyStore.Data]));
- Server.AddDocument(imageProto);
+ // Server.AddDocument(imageProto);
return imageProto;
}
- return Server.GetField(imageProtoId) as Document;
+ return new Document();
+ // return Server.GetField(imageProtoId) as Document;
}
export function ImageDocument(url: string, options: DocumentOptions = {}): Document {
let doc = GetImagePrototype().MakeDelegate();
setupOptions(doc, options);
doc.Set(KeyStore.Data, new ImageField(new URL(url)));
- Server.AddDocument(doc);
- var sdoc = Server.GetField(doc.Id) as Document;
- return sdoc;
+ // Server.AddDocument(doc);
+ // var sdoc = Server.GetField(doc.Id) as Document;
+ return doc;
}
let collectionProto: Document;