diff options
| author | stonedDiscord <stonedDiscord@users.noreply.github.com> | 2024-11-20 13:31:50 +0000 |
|---|---|---|
| committer | GitHub Action <actions@github.com> | 2024-11-20 13:31:50 +0000 |
| commit | 6684f3fce6e90fd0574d7bab63b629554ab03ef6 (patch) | |
| tree | b2a62247d17e23a77af57aea355ba621666817c2 /webAO/dom/updateActionCommands.ts | |
| parent | 95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff) | |
Prettified Code!
Diffstat (limited to 'webAO/dom/updateActionCommands.ts')
| -rw-r--r-- | webAO/dom/updateActionCommands.ts | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/webAO/dom/updateActionCommands.ts b/webAO/dom/updateActionCommands.ts index ca8ca60..536292b 100644 --- a/webAO/dom/updateActionCommands.ts +++ b/webAO/dom/updateActionCommands.ts @@ -1,27 +1,26 @@ - /** * Update evidence icon. */ export function updateActionCommands(side: string) { - if (side === "jud") { - document.getElementById("judge_action")!.style.display = "inline-table"; - document.getElementById("no_action")!.style.display = "none"; - } else { - document.getElementById("judge_action")!.style.display = "none"; - document.getElementById("no_action")!.style.display = "inline-table"; - } + if (side === "jud") { + document.getElementById("judge_action")!.style.display = "inline-table"; + document.getElementById("no_action")!.style.display = "none"; + } else { + document.getElementById("judge_action")!.style.display = "none"; + document.getElementById("no_action")!.style.display = "inline-table"; + } - // Update role selector - for ( - let i = 0, - role_select = <HTMLSelectElement>document.getElementById("role_select"); - i < role_select.options.length; - i++ - ) { - if (side === role_select.options[i].value) { - role_select.options.selectedIndex = i; - return; - } + // Update role selector + for ( + let i = 0, + role_select = <HTMLSelectElement>document.getElementById("role_select"); + i < role_select.options.length; + i++ + ) { + if (side === role_select.options[i].value) { + role_select.options.selectedIndex = i; + return; } + } } -window.updateActionCommands = updateActionCommands;
\ No newline at end of file +window.updateActionCommands = updateActionCommands; |
