aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Doc.ts
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-08-22 23:18:42 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-08-22 23:18:42 -0400
commit20f7d2dca1c115c84f6ac89981ef1e3c7c9a2757 (patch)
tree528e158c3ec8ab695325433018124cf1a7b6a696 /src/new_fields/Doc.ts
parent6b9400270d213de203e4a314428be9a7a2d774ff (diff)
added start of collection script building UI
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r--src/new_fields/Doc.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index e5b609966..f6114d476 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -626,4 +626,5 @@ export namespace Doc {
}
}
Scripting.addGlobal(function renameAlias(doc: any, n: any) { return StrCast(doc.title).replace(/\([0-9]*\)/, "") + `(${n})`; });
-Scripting.addGlobal(function getProto(doc: any) { return Doc.GetProto(doc); }); \ No newline at end of file
+Scripting.addGlobal(function getProto(doc: any) { return Doc.GetProto(doc); });
+Scripting.addGlobal(function copyField(field: any) { return ObjectField.MakeCopy(field); }); \ No newline at end of file