aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-09-02 10:16:10 -0400
committerbobzel <zzzman@gmail.com>2021-09-02 10:16:10 -0400
commit01cab1fc7259f1a944fad49403328e70e9d61b97 (patch)
tree3096b57fded31577dc7cc1743fa2d565f3beaf05
parentc8b3de89219a07d466151f5b4633cc87f0d46ec3 (diff)
from last
-rw-r--r--src/client/views/nodes/DocumentView.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 7463e192f..c9482c770 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -1189,7 +1189,7 @@ export class DocumentView extends React.Component<DocumentViewProps> {
}
}
-Scripting.addGlobal(function toggleDetail(dv: DocumentView, detailLayoutKey: string) {
- if (dv.Document.layoutKey === "layout_" + detailLayoutKey) dv.switchViews(false, "layout");
- else dv.switchViews(true, detailLayoutKey);
+Scripting.addGlobal(function toggleDetail(dv: DocumentView, detailLayoutKeySuffix: string) {
+ if (dv.Document.layoutKey === "layout_" + detailLayoutKeySuffix) dv.switchViews(false, "layout");
+ else dv.switchViews(true, detailLayoutKeySuffix);
}); \ No newline at end of file