Commit 0e4e1d20 authored by Tom Dwelly's avatar Tom Dwelly
Browse files

grey out submit button on success

parent 7f6ac2cd
......@@ -1069,7 +1069,9 @@ function submitVIinfo(){
var success_text = "Success!";
if (XHR.responseText.substring(0, success_text.length) === success_text) {
//add a pip to the submission button
document.getElementById("submitButton").value += ".";
button = document.getElementById("submitButton");
button.value += ".";
button.style.background = "rgba(128,128,128,0.5)"; //grey out the button
} else {
alert('Error! Something went badly wrong when submitting your results (see console for details).');
console.log(XHR.responseText); //debug output for those who are interested
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment