comparison interfaces/timeline.js @ 2825:64a5603831e2

#209 minNumberPlays
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Tue, 09 May 2017 15:39:40 +0100
parents 3a2dbff86da9
children 29c081e03e6b
comparison
equal deleted inserted replaced
2823:25027b8665a2 2825:64a5603831e2
494 interfaceContext.lightbox.post("Warning", 'You have not started the test! Please click play on a sample to begin the test!'); 494 interfaceContext.lightbox.post("Warning", 'You have not started the test! Please click play on a sample to begin the test!');
495 return; 495 return;
496 } 496 }
497 var checks = testState.currentStateMap.interfaces[0].options, 497 var checks = testState.currentStateMap.interfaces[0].options,
498 canContinue = true; 498 canContinue = true;
499 if (interfaceContext.checkFragmentMinPlays() === false) {
500 return;
501 }
499 for (var i = 0; i < checks.length; i++) { 502 for (var i = 0; i < checks.length; i++) {
500 var checkState = true; 503 var checkState = true;
501 if (checks[i].type == 'check') { 504 if (checks[i].type == 'check') {
502 switch (checks[i].name) { 505 switch (checks[i].name) {
503 case 'fragmentPlayed': 506 case 'fragmentPlayed':