diff --git a/static/app.js b/static/app.js index d1bb891..178a6d4 100644 --- a/static/app.js +++ b/static/app.js @@ -4,14 +4,15 @@ function setShare(pct) { } function onKindChange(kind) { - const shareWrap = document.getElementById('share-wrap'); - const presets = document.getElementById('presets'); - if (!shareWrap || !presets) return; + const a_share = document.getElementById('a_share'); + const presets = document.getElementById('presets'); + if (!a_share || !presets) return; + if (kind === 'transfer') { - shareWrap.style.display = ''; - presets.style.display = ''; + a_share.style.display = 'none'; + presets.style.display = 'none'; } else { - shareWrap.style.display = ''; + a_share.style.display = ''; presets.style.display = ''; } } diff --git a/templates/index.html b/templates/index.html index 3918d4f..99df200 100644 --- a/templates/index.html +++ b/templates/index.html @@ -40,9 +40,6 @@ -