comparison core.js @ 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 cf593a8bfd71
comparison
equal deleted inserted replaced
1530:61d5a6b05ab9 1531:3d63ae9a389a
210 if (node.step != null) {input.step = node.step;} 210 if (node.step != null) {input.step = node.step;}
211 this.popupContent.appendChild(input); 211 this.popupContent.appendChild(input);
212 } 212 }
213 this.popupContent.appendChild(this.buttonProceed); 213 this.popupContent.appendChild(this.buttonProceed);
214 if(this.currentIndex+1 == this.popupOptions.length) { 214 if(this.currentIndex+1 == this.popupOptions.length) {
215 this.buttonProceed.textContent = 'Submit'; 215 if (this.responses.nodeName == "PRETEST") {
216 this.buttonProceed.textContent = 'Start';
217 } else {
218 this.buttonProceed.textContent = 'Submit';
219 }
216 } else { 220 } else {
217 this.buttonProceed.textContent = 'Next'; 221 this.buttonProceed.textContent = 'Next';
218 } 222 }
219 if(this.currentIndex > 0) 223 if(this.currentIndex > 0)
220 this.popupContent.appendChild(this.buttonPrevious); 224 this.popupContent.appendChild(this.buttonPrevious);