diff --git a/dist/assets/js/upload-verify.js b/dist/assets/js/upload-verify.js index 0617c8e..33503df 100644 --- a/dist/assets/js/upload-verify.js +++ b/dist/assets/js/upload-verify.js @@ -1,34 +1 @@ -const container = document.getElementById("container"); -const postform = document.getElementById("postform"); -const pleasewait = document.getElementById("pleasewait"); -const failed = document.getElementById("failed"); -const form = document.getElementById("postform"); -const url = form.getAttribute("action"); - -fetch(url, { method: "POST" }) - .then(result => result.text()) - .then(body => { - const frag = document.createElement("div"); - frag.innerHTML = body; - container.appendChild(frag); - const result = document.getElementById("verification-result"); - if (result !== null) { - while (result.firstChild) { - container.appendChild(result.firstChild); - } - container.removeChild(frag); - } else { - // Leave the full content appended since it'll likely be plain text - } - // Hide the pleasewait too - pleasewait.style.display = "none"; - }) - .catch(err => { - // On error, hide the 'please wait' and show the 'Something went wrong' - pleasewait.style.display = "none"; - failed.textContent = failed.textContent + err; - failed.style.display = "block"; - }); -// Hide the form and display the 'please wait' block -postform.style.display = "none"; -pleasewait.style.display = "block"; +document.getElementById("postform").submit(); diff --git a/dist/assets/site.css b/dist/assets/site.css index 0d6c586..405267f 100644 --- a/dist/assets/site.css +++ b/dist/assets/site.css @@ -267,3 +267,14 @@ span.email { .attribution a { color: #ccc; } + +input.textbutton { + padding: 0px; + border: none; + background: none; + margin: 0px; + cursor: pointer; + color: blue; + font-family: inherit; + font-size: inherit; +} diff --git a/dist/templates/upload/verification-form.html.hbs b/dist/templates/upload/verification-form.html.hbs index 731a91b..e8cb19c 100644 --- a/dist/templates/upload/verification-form.html.hbs +++ b/dist/templates/upload/verification-form.html.hbs @@ -1,16 +1,11 @@ {{#> layout}}
-

- Please click here to complete the verification process: - -

-
- -
+ If the process doesn't complete after a few seconds, . +