Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 2540:6ff61a4f62a8
Reincluded missing checkAllCommented function from interfaceContext.
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Mon, 14 Nov 2016 14:41:12 +0000 |
parents | 21110fddb0af |
children | bee11d64db84 1c8aac0ee5e9 |
comparison
equal
deleted
inserted
replaced
2538:464c6c6692d6 | 2540:6ff61a4f62a8 |
---|---|
3045 interfaceContext.lightbox.post("Error", str); | 3045 interfaceContext.lightbox.post("Error", str); |
3046 console.log(str); | 3046 console.log(str); |
3047 this.storeErrorNode(str); | 3047 this.storeErrorNode(str); |
3048 return false; | 3048 return false; |
3049 }; | 3049 }; |
3050 this.checkAllCommented = function () { | |
3051 var str = "You have not commented on all the fragments."; | |
3052 var cont = true, | |
3053 boxes = this.commentBoxes.boxes, | |
3054 numBoxes = boxes.length, | |
3055 i; | |
3056 for (i = 0; i < numBoxes; i++) { | |
3057 if (boxes[i].trackCommentBox.value === "") { | |
3058 interfaceContext.lightbox.post("Error", str); | |
3059 console.log(str); | |
3060 this.storeErrorNode(str); | |
3061 return false; | |
3062 } | |
3063 } | |
3064 return true; | |
3065 } | |
3050 this.checkScaleRange = function (min, max) { | 3066 this.checkScaleRange = function (min, max) { |
3051 var page = testState.getCurrentTestPage(); | 3067 var page = testState.getCurrentTestPage(); |
3052 var audioObjects = audioEngineContext.audioObjects; | 3068 var audioObjects = audioEngineContext.audioObjects; |
3053 var state = true; | 3069 var state = true; |
3054 var str = "Please keep listening. "; | 3070 var str = "Please keep listening. "; |