diff options
| author | Sophie Zhang <sophie_zhang@brown.edu> | 2023-07-18 13:47:43 -0400 |
|---|---|---|
| committer | Sophie Zhang <sophie_zhang@brown.edu> | 2023-07-18 13:47:43 -0400 |
| commit | fd4b80f6fbd25b7a7477ead5c58e3cb8eb769604 (patch) | |
| tree | fc110c67d215c84e622fd611a3ecc8e6dd494f11 /src/client/views/global/globalScripts.ts | |
| parent | faf2a1db89918153c9a6bc06e73bb02f7769123d (diff) | |
| parent | c9da65d4f81c437578303f9656b29ae320aa11c3 (diff) | |
Merge branch 'master' into sophie-report-manager
Diffstat (limited to 'src/client/views/global/globalScripts.ts')
| -rw-r--r-- | src/client/views/global/globalScripts.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/global/globalScripts.ts b/src/client/views/global/globalScripts.ts index d22b6b4d9..b906065a0 100644 --- a/src/client/views/global/globalScripts.ts +++ b/src/client/views/global/globalScripts.ts @@ -20,6 +20,8 @@ import { WebBox } from "../nodes/WebBox"; import { RichTextMenu } from "../nodes/formattedText/RichTextMenu"; import { DocumentType } from "../../documents/DocumentTypes"; +ScriptingGlobals.add(function IsNoneSelected() { return SelectionManager.Views().length <= 0; }, "are no document selected"); + // toggle: Set overlay status of selected document ScriptingGlobals.add(function setView(view: string) { const selected = SelectionManager.Docs().lastElement(); |
