load intitially for global stock portfolio checkbox

This commit is contained in:
Justin 2023-09-25 22:36:04 +08:00 committed by GitHub
parent b76a787d30
commit d10a9a65b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3104,6 +3104,13 @@ function portfolioCryptoValidate() {
// global stock portoflio stuff // 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() { function globalportfolioValidate() {
var portfolioGlobalCheckbox = document.getElementById("globalstocks_portfolio"); var portfolioGlobalCheckbox = document.getElementById("globalstocks_portfolio");
if (portfolioGlobalCheckbox.checked) { if (portfolioGlobalCheckbox.checked) {