crypto portfolio settings hide / show

This commit is contained in:
Justin 2023-03-17 17:32:03 +08:00 committed by GitHub
parent cea1d2a538
commit ab54618cca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";
}
}