diff options
author | bobzel <zzzman@gmail.com> | 2022-06-14 13:00:27 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-06-14 13:00:27 -0400 |
commit | da6283875ec7f59af602e14ed19fcab93533f377 (patch) | |
tree | 570e95405a8f8bd06a44c2130acf6f866d700cec /src/fields/Doc.ts | |
parent | 263f1c04f7177bad20800f7ae13e04fbd5a20b30 (diff) |
made shared with me doc count decrement when a document is viewed (double-clicked, dragged out)
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index 6abc27b23..7b72787d1 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -1436,6 +1436,7 @@ ScriptingGlobals.add(function copyDragFactory(dragFactory: Doc) { return Doc.cop ScriptingGlobals.add(function delegateDragFactory(dragFactory: Doc) { return Doc.delegateDragFactory(dragFactory); }); ScriptingGlobals.add(function copyField(field: any) { return Field.Copy(field); }); ScriptingGlobals.add(function docList(field: any) { return DocListCast(field); }); +ScriptingGlobals.add(function addDocToList(doc: Doc, field: string, added:Doc) { return Doc.AddDocToList(doc,field, added); }); ScriptingGlobals.add(function setInPlace(doc: any, field: any, value: any) { return Doc.SetInPlace(doc, field, value, false); }); ScriptingGlobals.add(function sameDocs(doc1: any, doc2: any) { return Doc.AreProtosEqual(doc1, doc2); }); ScriptingGlobals.add(function undo() { SelectionManager.DeselectAll(); return UndoManager.Undo(); }); |