aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 0cb4f4c5e..12b57351d 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -235,7 +235,7 @@ export class DocumentOptions {
docColorBtn?: string;
userColorBtn?: string;
canClick?: string;
- script?: string;
+ script?: ScriptField;
numBtnType?: string;
numBtnMax?: number;
numBtnMin?: number;
@@ -594,7 +594,7 @@ export namespace Docs {
const options: DocumentOptions = {
system: true, _layoutKey: "layout", title, type, baseProto: true, x: 0, y: 0, _width: 300, ...(template.options || {}),
layout: layout.view?.LayoutString(layout.dataField), data: template.data, layout_keyValue: KeyValueBox.LayoutString("")
- }
+ };
Object.entries(options).map(pair => {
if (typeof pair[1] === "string" && pair[1].startsWith("@")) {
(options as any)[pair[0]] = ComputedField.MakeFunction(pair[1].substring(1));