From 7d3a6dc03bb284e3bb711a4a0fa698d197e585ea Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Thu, 17 Nov 2022 22:55:36 +0100 Subject: both ini dropdown and custom --- webAO/dom/updateIniswap.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 webAO/dom/updateIniswap.ts (limited to 'webAO/dom/updateIniswap.ts') diff --git a/webAO/dom/updateIniswap.ts b/webAO/dom/updateIniswap.ts new file mode 100644 index 0000000..e040e64 --- /dev/null +++ b/webAO/dom/updateIniswap.ts @@ -0,0 +1,18 @@ +/** + * Update iniswap drowdown + */ +export function updateIniswap() { + const ini_select = ( + document.getElementById("evi_select") + ); + const ini_name = ( + document.getElementById("evi_filename") + ); + + if (ini_select.selectedIndex === 0) { + ini_filename.style.display = "initial"; + } else { + ini_filename.style.display = "none"; + } +} +window.updateIniswap = updateIniswap; -- cgit From 1ca093371aa446a79b76cd54e2ce822c2c39cdfd Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Thu, 17 Nov 2022 23:10:23 +0100 Subject: copypasta :spaghetti: --- webAO/dom/updateIniswap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webAO/dom/updateIniswap.ts') diff --git a/webAO/dom/updateIniswap.ts b/webAO/dom/updateIniswap.ts index e040e64..251e1f1 100644 --- a/webAO/dom/updateIniswap.ts +++ b/webAO/dom/updateIniswap.ts @@ -10,9 +10,9 @@ export function updateIniswap() { ); if (ini_select.selectedIndex === 0) { - ini_filename.style.display = "initial"; + ini_name.style.display = "initial"; } else { - ini_filename.style.display = "none"; + ini_name.style.display = "none"; } } window.updateIniswap = updateIniswap; -- cgit From 2b78887579ba24355936ae75f912c55343bf0d0b Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Thu, 17 Nov 2022 23:17:07 +0100 Subject: :spaghetti: :spaghetti: :spaghetti: :spaghetti: :spaghetti: :spaghetti: :spaghetti: --- webAO/dom/updateIniswap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webAO/dom/updateIniswap.ts') diff --git a/webAO/dom/updateIniswap.ts b/webAO/dom/updateIniswap.ts index 251e1f1..5bea0f5 100644 --- a/webAO/dom/updateIniswap.ts +++ b/webAO/dom/updateIniswap.ts @@ -3,10 +3,10 @@ */ export function updateIniswap() { const ini_select = ( - document.getElementById("evi_select") + document.getElementById("client_iniselect") ); const ini_name = ( - document.getElementById("evi_filename") + document.getElementById("client_ininame") ); if (ini_select.selectedIndex === 0) { -- cgit