Mercurial > hg > webaudioevaluationtool
comparison ape.js @ 679:a79490e0fdc7
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 | 1e736dc124ab |
children | ab56aa2fe064 |
comparison
equal
deleted
inserted
replaced
678:1e736dc124ab | 679:a79490e0fdc7 |
---|---|
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(); |