# HG changeset patch # User Nicholas Jillings # Date 1429261066 -3600 # Node ID a79490e0fdc7d0bbaa890ac14cf0a359a847e808 # Parent 1e736dc124abbfd0ca13fbd0aad351f205f91d22 Alert if submit button clicked before test start button. diff -r 1e736dc124ab -r a79490e0fdc7 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') {