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

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