changeset 55:dbc626091063 Dev_main

Alert if submit button clicked before test start button.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 17 Apr 2015 09:57:46 +0100
parents 9a552027412f
children 83198a86b3bc
files ape.js
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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')
 	{