diff --git a/website/payments.html b/website/payments.html index d154db9..c55c4b2 100644 --- a/website/payments.html +++ b/website/payments.html @@ -26,24 +26,6 @@ }; } - function get_pr_info() { - const xhr = new XMLHttpRequest(); - xhr.open("GET", "/api/pr_info"); - xhr.send(); - xhr.responseType = "json"; - - xhr.onload = () => { - if (xhr.readyState == 4 && xhr.status == 200) { - const prs = xhr.response["prs"]; - document.getElementById("pr_table").classList.remove("hide"); - prs.forEach((x, i) => document.getElementById("pr_table_body").innerHTML += "" + x['pr_nr'] + "" + x['title'] + "" + x['last_updated'] + ""); - document.getElementById("pr_table_spinner").classList.add("hide"); - } else { - console.log(`Error: ${xhr.status}`); - } - }; - } - function get_payment_info() { const xhr = new XMLHttpRequest(); xhr.open("GET", "/api/payment_info"); @@ -52,7 +34,6 @@ xhr.onload = () => { if (xhr.readyState == 4 && xhr.status == 200) { - get_pr_info(); const payments = xhr.response["payments"]; if (xhr.response["oc"]) { document.getElementById("oc_username").value = xhr.response["oc"] @@ -65,14 +46,14 @@ if ("processed" in x) { d = new Date(x['processed']['approved_on'] * 1000) document.getElementById("processed_payment_rows").innerHTML += "" + x['amount'] + "" + x['title'] + "" + x['details'] + "" + d.toLocaleDateString() + ""; - document.getElementById("processed_payments").classList.remove("hide"); } else { - document.getElementById("payment_rows").innerHTML += "" + x['amount'] + "
" + x['title'] + "
" + x['details'] + ""; + document.getElementById("payment_rows").innerHTML += "" + x['amount'] + "" + x['title'] + "" + x['details'] + ""; } }); document.getElementById("block_payments").classList.remove("hide"); } document.getElementById("payments_wait").classList.add("hide"); + document.getElementById("processed_payments_spinner").classList.add("hide"); } else { window.location.href = 'index.html' } @@ -124,7 +105,7 @@

Moto Payments

- +
@@ -174,9 +155,16 @@

Moto Payments

-
-
-

Processed Payments

+
+ + + +
+ +
+ +
+ @@ -190,32 +178,6 @@

Moto Payments

-
- -
- - - -
- -
All PR's you've submitted to Moto:
- -
- -
- - - - - - - - - - - - -
PRTitleDate