# HG changeset patch # User Nicholas Jillings # Date 1444728004 -3600 # Node ID d8fd1699f6de4fd3ec898a554ee6193644546ed9 # Parent 25c16110d0fa0fe22499614911ad8549c93993bb stash. test_create question now shows box size options. diff -r 25c16110d0fa -r d8fd1699f6de test_create/test_create.html --- a/test_create/test_create.html Fri Oct 09 10:38:03 2015 +0100 +++ b/test_create/test_create.html Tue Oct 13 10:20:04 2015 +0100 @@ -29,6 +29,7 @@ popupInstance = new popup(); popupInstance.advanceState(); specificationNode = new Specification(); + specificationNode.projectReturn = "null"; }; function popup() @@ -1490,7 +1491,7 @@ this.node = null; this.previousState = 7; }; - popupInstace.state = 6; + popupInstance.state = 6; popupInstance.advanceState(); }; entry.appendChild(addPost); @@ -2192,6 +2193,7 @@ text.textContent = "Question"; input = document.createElement("input"); input.name = "question"; + input.style.width = "400px"; input.value = node.question; text.style.margin = "5px"; input.style.margin = "5px"; @@ -2207,6 +2209,31 @@ input.style.margin = "5px"; attributes.appendChild(text); attributes.appendChild(input); + text = document.createElement("span"); + text.textContent = "Reply box size"; + input = document.createElement("select"); + input.name = "boxsize"; + var option = document.createElement("option"); + option.textContent = "Normal"; + option.value = "normal"; + input.appendChild(option); + option = document.createElement("option"); + option.textContent = "Large"; + option.value = "large"; + input.appendChild(option); + option = document.createElement("option"); + option.textContent = "Small"; + option.value = "small"; + input.appendChild(option); + option = document.createElement("option"); + option.textContent = "Huge"; + option.value = "huge"; + input.appendChild(option); + text.style.margin = "5px"; + input.style.margin = "5px"; + attributes.appendChild(text); + attributes.appendChild(input); + input.value = node.boxsize; break; } return holder;