comparison test_create/test_core.js @ 1272:6798b5afa2c9

Fixed Bug #1591
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Tue, 22 Mar 2016 14:01:47 +0000
parents 2dd5f7071e3f
children 1e2a2a9e9295
comparison
equal deleted inserted replaced
1271:2dd5f7071e3f 1272:6798b5afa2c9
868 this.rootDOM.appendChild(this.inputLabel); 868 this.rootDOM.appendChild(this.inputLabel);
869 this.inputName.addEventListener("change",this,false); 869 this.inputName.addEventListener("change",this,false);
870 this.inputLabel.addEventListener("change",this,false); 870 this.inputLabel.addEventListener("change",this,false);
871 this.inputName.value = this.specification.name; 871 this.inputName.value = this.specification.name;
872 this.inputLabel.value = this.specification.text; 872 this.inputLabel.value = this.specification.text;
873 this.inputLabel.style.width = "350px";
873 874
874 this.deleteEntry = { 875 this.deleteEntry = {
875 root: document.createElement("button"), 876 root: document.createElement("button"),
876 parent: this, 877 parent: this,
877 handleEvent: function() { 878 handleEvent: function() {
1049 this.positionInput.max = 100; 1050 this.positionInput.max = 100;
1050 this.positionInput.value = specification.position; 1051 this.positionInput.value = specification.position;
1051 this.positionInput.setAttribute("name","position"); 1052 this.positionInput.setAttribute("name","position");
1052 this.textInput = document.createElement("input"); 1053 this.textInput = document.createElement("input");
1053 this.textInput.setAttribute("name","text"); 1054 this.textInput.setAttribute("name","text");
1055 this.textInput.style.width = "300px";
1054 this.textInput.value = specification.text; 1056 this.textInput.value = specification.text;
1055 this.specification = specification; 1057 this.specification = specification;
1056 this.parent = parent; 1058 this.parent = parent;
1057 this.handleEvent = function(event) { 1059 this.handleEvent = function(event) {
1058 switch(event.currentTarget.getAttribute("name")) 1060 switch(event.currentTarget.getAttribute("name"))