# HG changeset patch # User Nicholas Jillings # Date 1437570655 -3600 # Node ID 212b353a5cd33afc9779d7c636efdfc59b296d15 # Parent 3ce1cd41644dbcb57e27adda8cd1c35581a8147f Fix Bug #1301: If last of pretest node, will say 'start' not submit. diff -r 3ce1cd41644d -r 212b353a5cd3 core.js --- 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'; }