comparison ape.js @ 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 086a10f85fde
comparison
equal deleted inserted replaced
54:9a552027412f 55:dbc626091063
643 { 643 {
644 if (audioEngineContext.status == 1) { 644 if (audioEngineContext.status == 1) {
645 var playback = document.getElementById('playback-button'); 645 var playback = document.getElementById('playback-button');
646 playback.click(); 646 playback.click();
647 // This function is called when the submit button is clicked. Will check for any further tests to perform, or any post-test options 647 // This function is called when the submit button is clicked. Will check for any further tests to perform, or any post-test options
648 } else
649 {
650 if (audioEngineContext.timer.testStarted == false)
651 {
652 alert('You have not started the test! Please press start to begin the test!');
653 return;
654 }
648 } 655 }
649 if (currentState.substr(0,7) == 'testRun') 656 if (currentState.substr(0,7) == 'testRun')
650 { 657 {
651 audioEngineContext.timer.stopTest(); 658 audioEngineContext.timer.stopTest();
652 advanceState(); 659 advanceState();