comparison js/core.js @ 2917:60e5116da71a

Fix for #104
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Wed, 02 Aug 2017 07:39:49 +0100
parents 03a66e54cdff
children 2399d09c8dab
comparison
equal deleted inserted replaced
2915:03a66e54cdff 2917:60e5116da71a
669 processConditional.call(this, node, textArea.value); 669 processConditional.call(this, node, textArea.value);
670 return true; 670 return true;
671 } 671 }
672 672
673 function postCheckbox(node) { 673 function postCheckbox(node) {
674 if (node.response === undefined) { 674 if (node.response === null) {
675 node.response = Array(node.specification.options.length); 675 node.response = [];
676 } 676 }
677 var table = document.createElement("table"); 677 var table = document.createElement("table");
678 table.className = "popup-option-list"; 678 table.className = "popup-option-list";
679 table.border = "0"; 679 table.border = "0";
680 node.response = [];
681 node.specification.options.forEach(function (option, index) { 680 node.specification.options.forEach(function (option, index) {
682 var tr = document.createElement("tr"); 681 var tr = document.createElement("tr");
683 table.appendChild(tr); 682 table.appendChild(tr);
684 var td = document.createElement("td"); 683 var td = document.createElement("td");
685 tr.appendChild(td); 684 tr.appendChild(td);