aboutsummaryrefslogtreecommitdiff
path: root/src/client/util
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2019-06-25 21:28:15 -0400
committerFawn <fangrui_tong@brown.edu>2019-06-25 21:28:15 -0400
commita3c4aa24a9e9074da8f2421954f610c8178e10b1 (patch)
tree9306a38a513e075fce4fab3399fe87a13d7a301e /src/client/util
parentca8a78de9957ad27d345ad51fdaee9dae3f096bd (diff)
link metadata values appear on first load
Diffstat (limited to 'src/client/util')
-rw-r--r--src/client/util/DocumentManager.ts8
-rw-r--r--src/client/util/DragManager.ts2
2 files changed, 4 insertions, 6 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index 767abe63f..d7798ebfd 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -73,6 +73,9 @@ export class DocumentManager {
if (doc === toFind) {
toReturn.push(view);
} else {
+ // if (Doc.AreProtosEqual(doc, toFind)) {
+ // toReturn.push(view);
+
let docSrc = FieldValue(doc.proto);
if (docSrc && Object.is(docSrc, toFind)) {
toReturn.push(view);
@@ -100,11 +103,6 @@ export class DocumentManager {
return pairs;
}, [] as { a: DocumentView, b: DocumentView, l: Doc }[]);
- // console.log("LINKED DOCUMENT VIEWS");
- // pairs.forEach(p => {
- // console.log(StrCast(p.a.Document.title), p.a.props.Document[Id], StrCast(p.b.Document.title), p.b.props.Document[Id]);
- // });
-
return pairs;
}
diff --git a/src/client/util/DragManager.ts b/src/client/util/DragManager.ts
index 55d8c570f..27063d1c2 100644
--- a/src/client/util/DragManager.ts
+++ b/src/client/util/DragManager.ts
@@ -230,7 +230,7 @@ export namespace DragManager {
(dropData: { [id: string]: any }) => {
dropData.droppedDocuments = dragData.draggedDocuments.map(d => {
let dv = DocumentManager.Instance.getDocumentView(d);
-
+ // return d;
if (dv) {
if (dv.props.ContainingCollectionView === SelectionManager.SelectedDocuments()[0].props.ContainingCollectionView) {
return d;