Mercurial > hg > webaudioevaluationtool
comparison js/core.js @ 2347:7de03d416f38
Can go back and forth in test survey
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Mon, 16 May 2016 10:48:29 +0100 |
parents | 5f1e2b66d8bb |
children | ceaccbd708cb e157b2b88219 |
comparison
equal
deleted
inserted
replaced
2346:5f1e2b66d8bb | 2347:7de03d416f38 |
---|---|
732 if (node.response[index] != undefined){ | 732 if (node.response[index] != undefined){ |
733 if (node.response[index].checked == true) { | 733 if (node.response[index].checked == true) { |
734 input.checked = "true"; | 734 input.checked = "true"; |
735 } | 735 } |
736 } | 736 } |
737 index++; | |
737 } | 738 } |
738 this.popupResponse.appendChild(table); | 739 this.popupResponse.appendChild(table); |
739 } else if (node.specification.type == 'radio') { | 740 } else if (node.specification.type == 'radio') { |
740 if (node.response == undefined) { | 741 if (node.response == undefined) { |
741 node.response = {name: "", text: ""}; | 742 node.response = {name: "", text: ""}; |
766 if (node.response[index] != undefined){ | 767 if (node.response[index] != undefined){ |
767 if (node.response[index].checked == true) { | 768 if (node.response[index].checked == true) { |
768 input.checked = "true"; | 769 input.checked = "true"; |
769 } | 770 } |
770 } | 771 } |
772 index++; | |
771 } | 773 } |
772 this.popupResponse.appendChild(table); | 774 this.popupResponse.appendChild(table); |
773 } else if (node.specification.type == 'number') { | 775 } else if (node.specification.type == 'number') { |
774 var input = document.createElement('input'); | 776 var input = document.createElement('input'); |
775 input.type = 'textarea'; | 777 input.type = 'textarea'; |