From ab54618cca988865ac01f50c2b8da24e12f54ee3 Mon Sep 17 00:00:00 2001 From: Justin Date: Fri, 17 Mar 2023 17:32:03 +0800 Subject: [PATCH] crypto portfolio settings hide / show --- static/app.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/static/app.js b/static/app.js index bc4cb4c..d023347 100755 --- a/static/app.js +++ b/static/app.js @@ -2506,4 +2506,22 @@ function portfolioValidate() { } +// crypto portfolio stuff + +var portfolioCryptoCheckbox = document.getElementById("crypto_portfolio_checkbox"); +if (portfolioCryptoCheckbox.checked) { + document.getElementById('crypto-portfolio').style.display = "block"; +} else { + document.getElementById('crypto-portfolio').style.display = "none"; +} + + +function portfolioCryptoValidate() { + var portfolioCryptoCheckbox = document.getElementById("crypto_portfolio_checkbox"); + if (portfolioCryptoCheckbox.checked) { + document.getElementById('crypto-portfolio').style.display = "block"; + } else { + document.getElementById('crypto-portfolio').style.display = "none"; + } +}