comparison test_create/test_core.js @ 2536:527020a63203

Survey not storing
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Mon, 14 Nov 2016 12:11:38 +0000
parents dd5290724a76
children c5fd47349a4f fddfb7c0b4fa
comparison
equal deleted inserted replaced
2535:dd5290724a76 2536:527020a63203
925 optionHolder.appendChild(obj.rootDOM); 925 optionHolder.appendChild(obj.rootDOM);
926 } 926 }
927 this.dynamic.appendChild(optionHolder); 927 this.dynamic.appendChild(optionHolder);
928 } 928 }
929 } 929 }
930 this.handleEvent = function () { 930 this.handleEvent = function (event) {
931 var name = event.currentTarget.getAttribute("name"); 931 var name = event.currentTarget.getAttribute("name");
932 var nodeName = event.currentTarget.nodeName; 932 var nodeName = event.currentTarget.nodeName;
933 if (name == "type" && nodeName == "SELECT") { 933 if (name == "type" && nodeName == "SELECT") {
934 // If type has changed, we may need to rebuild the entire state node 934 // If type has changed, we may need to rebuild the entire state node
935 if (event.currentTarget.value != this.option.name) { 935 if (event.currentTarget.value != this.option.name) {