aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/global/globalScripts.ts
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2023-07-18 13:31:52 -0400
committersrichman333 <sarah_n_richman@brown.edu>2023-07-18 13:31:52 -0400
commitf208dbc1acfc240edf475eab02cab3f4fb9492c0 (patch)
treeb3c427a1227c7d297ad501949f0fbd447f7b70c7 /src/client/views/global/globalScripts.ts
parent7311dc5e358e34b074391b398e51439b20391ecb (diff)
parentc9da65d4f81c437578303f9656b29ae320aa11c3 (diff)
Merge branch 'master' into data-visualization-sarah
Diffstat (limited to 'src/client/views/global/globalScripts.ts')
-rw-r--r--src/client/views/global/globalScripts.ts2
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();