# HG changeset patch # User Nicholas Jillings # Date 1429261066 -3600 # Node ID 6d000b353a7e0a83ae26572d47116617688e2aef # Parent bf302b83c58e72c5cadb807e373b53d44b9b86d1 Alert if submit button clicked before test start button. diff -r bf302b83c58e -r 6d000b353a7e 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') {