diff options
Diffstat (limited to 'webAO/dom/updateIniswap.ts')
| -rw-r--r-- | webAO/dom/updateIniswap.ts | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/webAO/dom/updateIniswap.ts b/webAO/dom/updateIniswap.ts new file mode 100644 index 0000000..5bea0f5 --- /dev/null +++ b/webAO/dom/updateIniswap.ts @@ -0,0 +1,18 @@ +/** + * Update iniswap drowdown + */ +export function updateIniswap() { + const ini_select = <HTMLSelectElement>( + document.getElementById("client_iniselect") + ); + const ini_name = <HTMLInputElement>( + document.getElementById("client_ininame") + ); + + if (ini_select.selectedIndex === 0) { + ini_name.style.display = "initial"; + } else { + ini_name.style.display = "none"; + } +} +window.updateIniswap = updateIniswap; |
