renamed function

This commit is contained in:
Justin 2023-07-11 19:16:15 +08:00 committed by GitHub
parent 49867cd86a
commit 17a0e0ea0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2912,16 +2912,20 @@ function removeStockPorftolio() {
document.getElementById('inputText9').value = ''; document.getElementById('inputText9').value = '';
document.getElementById('inputText8').value = ''; document.getElementById('inputText8').value = '';
document.getElementById('inputText10').value = ''; document.getElementById('inputText10').value = '';
fetch("/deletePortfolioSettings", {
fetch("/deletePortfolioPosition", {
method: "POST", method: "POST",
body: JSON.stringify(remove_stock_symbol), body: JSON.stringify(remove_stock_symbol),
}); });
document.getElementById('removed-stock-p').innerHTML = 'Stock Position Removed!'; document.getElementById('removed-stock-p').innerHTML = 'Stock Position Removed!';
document.getElementById('removed-stock-p').style.display = "block"; document.getElementById('removed-stock-p').style.display = "block";
setTimeout(function hideElement() { setTimeout(function hideElement() {
document.getElementById('removed-stock-p').style.display = "none"; document.getElementById('removed-stock-p').style.display = "none";
}, 5000); }, 5000);
} else { }
else {
document.getElementById('removed-stock-p').innerHTML = 'No symbol selected.'; document.getElementById('removed-stock-p').innerHTML = 'No symbol selected.';
document.getElementById('removed-stock-p').style.display = "block"; document.getElementById('removed-stock-p').style.display = "block";
setTimeout(function hideElement() { setTimeout(function hideElement() {