# HG changeset patch # User Nicholas Jillings # Date 1429261066 -3600 # Node ID dbc626091063f3400e020f7d2cf04b584dfce637 # Parent 9a552027412f1edfdf4bf895f476f43cada5d892 Alert if submit button clicked before test start button. diff -r 9a552027412f -r dbc626091063 ape.js --- a/ape.js Fri Apr 17 09:41:31 2015 +0100 +++ b/ape.js Fri Apr 17 09:57:46 2015 +0100 @@ -645,6 +645,13 @@ var playback = document.getElementById('playback-button'); playback.click(); // This function is called when the submit button is clicked. Will check for any further tests to perform, or any post-test options + } else + { + if (audioEngineContext.timer.testStarted == false) + { + alert('You have not started the test! Please press start to begin the test!'); + return; + } } if (currentState.substr(0,7) == 'testRun') {