comparison js/core.js @ 2316:0ca5bcfdc2d4

Fix for #16
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Fri, 29 Apr 2016 15:48:11 +0100
parents 483bd6573747
children 6897339ac651
comparison
equal deleted inserted replaced
2315:a7e50a52a896 2316:0ca5bcfdc2d4
807 if (i == inputs.length) 807 if (i == inputs.length)
808 { 808 {
809 if (node.specification.mandatory == true) 809 if (node.specification.mandatory == true)
810 { 810 {
811 alert("This radio is mandatory"); 811 alert("This radio is mandatory");
812 } else { 812 return;
813 node.response = -1;
814 } 813 }
815 return; 814 break;
816 } 815 }
817 if (inputs[i].checked == true) { 816 if (inputs[i].checked == true) {
818 node.response = node.specification.options[i]; 817 node.response = node.specification.options[i];
819 console.log("Selected: "+ node.specification.options[i].name); 818 console.log("Selected: "+ node.specification.options[i].name);
820 } 819 }