changeset 2866:3b7b45f9c20d

Auto-condition pre/post test surveys
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Fri, 28 Apr 2017 11:56:27 +0100
parents d5e7f45b15e7
children 395762c79ecb
files js/specification.js
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/js/specification.js	Thu Apr 27 14:36:30 2017 +0100
+++ b/js/specification.js	Fri Apr 28 11:56:27 2017 +0100
@@ -22,6 +22,8 @@
     this.metrics = new metricNode();
     this.preTest = new surveyNode(this);
     this.postTest = new surveyNode(this);
+    this.preTest.location = "pre";
+    this.postTest.location = "post";
     this.pages = [];
     this.interfaces = new interfaceNode(this);
     this.errors = [];
@@ -553,6 +555,8 @@
         this.labelStart = undefined;
         this.preTest = new surveyNode(specification);
         this.postTest = new surveyNode(specification);
+        this.preTest.location = "pre";
+        this.postTest.location = "post";
         this.interfaces = [];
         this.playOne = undefined;
         this.restrictMovement = undefined;