diff --git a/files/assets/js/userpage_v.js b/files/assets/js/userpage_v.js index 450b2548c..c38d99a9b 100644 --- a/files/assets/js/userpage_v.js +++ b/files/assets/js/userpage_v.js @@ -70,7 +70,7 @@ let TRANSFER_TAX = document.getElementById('tax').innerHTML function updateTax(mobile=false) { let suf = mobile ? "-mobile" : ""; - let amount = parseInt(document.getElementById("coins-transfer-amount" + suf).value); + let amount = parseInt(document.getElementById("coin-transfer-amount" + suf).value); if(amount > 0) document.getElementById("coins-transfer-taxed" + suf).innerText = amount - Math.ceil(amount*TRANSFER_TAX); } @@ -84,12 +84,12 @@ function transferCoins(mobile=false) { let t = event.target; t.disabled = true; - let amount = parseInt(document.getElementById("coins-transfer-amount").value); + let amount = parseInt(document.getElementById("coin-transfer-amount").value); let transferred = amount - Math.ceil(amount*TRANSFER_TAX); let username = document.getElementById('username').innerHTML post_toast_callback(`/@${username}/transfer_coins`, - {"amount": document.getElementById(mobile ? "coins-transfer-amount-mobile" : "coins-transfer-amount").value}, + {"amount": document.getElementById(mobile ? "coin-transfer-amount-mobile" : "coin-transfer-amount").value}, (xhr) => { if(xhr.status == 200) { document.getElementById("user-coins-amount").innerText = parseInt(document.getElementById("user-coins-amount").innerText) - amount; diff --git a/files/templates/userpage.html b/files/templates/userpage.html index c2b390824..c60c4208f 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -690,7 +690,7 @@ {% if v %}
{% if v.patron or u.patron or v.alts_patron or u.alts_patron %}0{% else %}0.03{% endif %}
- +
{{u.username}}
{% endif %} diff --git a/files/templates/userpage_comments.html b/files/templates/userpage_comments.html index a7165c0f3..d5a278670 100644 --- a/files/templates/userpage_comments.html +++ b/files/templates/userpage_comments.html @@ -114,7 +114,7 @@ {% if v %}
{% if v.patron or u.patron %}0{% else %}0.03{% endif %}
- +
{{u.username}}
{% endif %} diff --git a/files/templates/userpage_private.html b/files/templates/userpage_private.html index 84975f99b..a1fc61049 100644 --- a/files/templates/userpage_private.html +++ b/files/templates/userpage_private.html @@ -48,7 +48,7 @@ {% if v %}
{% if v.patron or u.patron %}0{% else %}0.03{% endif %}
- +
{{u.username}}
{% endif %}