diff options
Diffstat (limited to 'app/trading/templates')
-rw-r--r-- | app/trading/templates/trading/list.html | 4 | ||||
-rw-r--r-- | app/trading/templates/trading/update_options_form.html | 13 |
2 files changed, 2 insertions, 15 deletions
diff --git a/app/trading/templates/trading/list.html b/app/trading/templates/trading/list.html index a132cd6..f8957bd 100644 --- a/app/trading/templates/trading/list.html +++ b/app/trading/templates/trading/list.html @@ -88,8 +88,8 @@ <th>Total Invested</th> <th>Risk per</th> <th>$ Trade Risk</th> - <th>% Trade at Risk</th> - <th>% Portfolio at Risk</th> + <th>% Trade Risk</th> + <th>% Portfolio Risk</th> <th>Profit Goal</th> <th>Risk/Reward</th> <th>Price Calc</th> diff --git a/app/trading/templates/trading/update_options_form.html b/app/trading/templates/trading/update_options_form.html index a352cb3..3d40738 100644 --- a/app/trading/templates/trading/update_options_form.html +++ b/app/trading/templates/trading/update_options_form.html @@ -51,18 +51,5 @@ function calcPercentPortfolio() { id_form.addEventListener("input", function (e) { calcPercentPortfolio(); }); -var form = document.getElementById('id_form'); -function processForm(e) { - if (e.preventDefault) e.preventDefault(); - if(!confirm("Do you really want to do this?")) { - return false; - } - form.submit(); -} -if (form.attachEvent) { - form.attachEvent("submit", processForm); -} else { - form.addEventListener("submit", processForm); -} </script> {% endblock %} |