Mercurial > hg > webaudioevaluationtool
changeset 2541:b5cb6ceb2022
Merge branch 'master' of https://github.com/BrechtDeMan/WebAudioEvaluationTool
author | www-data <www-data@sucuk.dcs.qmul.ac.uk> |
---|---|
date | Mon, 14 Nov 2016 15:20:59 +0000 |
parents | bc9a025e7e10 (current diff) 6ff61a4f62a8 (diff) |
children | 3df737a0d496 |
files | |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/js/core.js Mon Nov 14 14:20:59 2016 +0000 +++ b/js/core.js Mon Nov 14 15:20:59 2016 +0000 @@ -3047,6 +3047,22 @@ this.storeErrorNode(str); return false; }; + this.checkAllCommented = function () { + var str = "You have not commented on all the fragments."; + var cont = true, + boxes = this.commentBoxes.boxes, + numBoxes = boxes.length, + i; + for (i = 0; i < numBoxes; i++) { + if (boxes[i].trackCommentBox.value === "") { + interfaceContext.lightbox.post("Error", str); + console.log(str); + this.storeErrorNode(str); + return false; + } + } + return true; + } this.checkScaleRange = function (min, max) { var page = testState.getCurrentTestPage(); var audioObjects = audioEngineContext.audioObjects;