From d10a9a65b607d225610bbcb7903078daad42496f Mon Sep 17 00:00:00 2001 From: Justin Date: Mon, 25 Sep 2023 22:36:04 +0800 Subject: [PATCH] load intitially for global stock portfolio checkbox --- static/app.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/app.js b/static/app.js index bf36747..1eb4fd2 100755 --- a/static/app.js +++ b/static/app.js @@ -3104,6 +3104,13 @@ function portfolioCryptoValidate() { // global stock portoflio stuff +var portfolioGlobalCheckbox = document.getElementById("globalstocks_portfolio"); +if (portfolioGlobalCheckbox.checked) { + document.getElementById('globalstocks-portfolio').style.display = "block"; +} else { + document.getElementById('globalstocks-portfolio').style.display = "none"; +} + function globalportfolioValidate() { var portfolioGlobalCheckbox = document.getElementById("globalstocks_portfolio"); if (portfolioGlobalCheckbox.checked) {