changeset 1531:3d63ae9a389a

Fix Bug #1301: If last of pretest node, will say 'start' not submit.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 22 Jul 2015 14:10:55 +0100
parents 61d5a6b05ab9
children 35df5cba63eb
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';
 		}