comparison interfaces/AB.js @ 3035:1620cbee9111

Implemented #218 in all interfaces
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Tue, 26 Sep 2017 10:15:39 +0100
parents 64a5603831e2
children f83b364d3d4b
comparison
equal deleted inserted replaced
3034:49eca76782d2 3035:1620cbee9111
393 } 393 }
394 394
395 function buttonSubmitClick() { 395 function buttonSubmitClick() {
396 var checks = testState.currentStateMap.interfaces[0].options, 396 var checks = testState.currentStateMap.interfaces[0].options,
397 canContinue = true; 397 canContinue = true;
398 398
399 if (interfaceContext.checkFragmentMinPlays() === false) { 399 if (interfaceContext.checkFragmentMinPlays() === false) {
400 return; 400 return;
401 } 401 }
402 if (interfaceContext.checkCommentQuestions() === false) {
403 return;
404 }
402 405
403 for (var i = 0; i < checks.length; i++) { 406 for (var i = 0; i < checks.length; i++) {
404 if (checks[i].type == 'check') { 407 if (checks[i].type == 'check') {
405 var checkState; 408 var checkState;
406 switch (checks[i].name) { 409 switch (checks[i].name) {