# HG changeset patch # User Nicholas Jillings # Date 1479134472 0 # Node ID 6ff61a4f62a8e39e3f07024e4c2fe37fb51db65b # Parent 464c6c6692d6ac6536b6cdbd87c37c1e57e29e95 Reincluded missing checkAllCommented function from interfaceContext. diff -r 464c6c6692d6 -r 6ff61a4f62a8 js/core.js --- a/js/core.js Mon Nov 14 14:17:03 2016 +0000 +++ b/js/core.js Mon Nov 14 14:41:12 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;