changeset 268:af166dc1bfad Dev_main

Fix Bug #1301: If last of pretest node, will say 'start' not submit.
author Nicholas Jillings <nicholas.jillings@eecs.qmul.ac.uk>
date Wed, 22 Jul 2015 14:10:55 +0100
parents 364f63f82a9c
children 8be863078392
files core.js
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core.js	Wed Jul 22 14:04:08 2015 +0100
+++ b/core.js	Wed Jul 22 14:10:55 2015 +0100
@@ -212,7 +212,11 @@
 		}
 		this.popupContent.appendChild(this.buttonProceed);
 		if(this.currentIndex+1 == this.popupOptions.length) {
-			this.buttonProceed.textContent = 'Submit';
+			if (this.responses.nodeName == "PRETEST") {
+				this.buttonProceed.textContent = 'Start';
+			} else {
+				this.buttonProceed.textContent = 'Submit';
+			}
 		} else {
 			this.buttonProceed.textContent = 'Next';
 		}