diff --git a/Bench4Q-Web/src/main/webapp/script/ScriptEditor/uiCommon.js b/Bench4Q-Web/src/main/webapp/script/ScriptEditor/uiCommon.js new file mode 100644 index 00000000..62786a9a --- /dev/null +++ b/Bench4Q-Web/src/main/webapp/script/ScriptEditor/uiCommon.js @@ -0,0 +1,14 @@ +function createLineWithRadio(lineText, nameAttr) { + var textNode = document.createTextNode(lineText); + var divNode = document.createElement("div"); + var inputNode = document.createElement("input"); + var brNode = document.createElement("br"); + inputNode.setAttribute("type", "radio"); + inputNode.setAttribute("name", nameAttr); + inputNode.setAttribute("class", "chooseOnePlugin"); + inputNode.setAttribute("value", lineText); + divNode.appendChild(inputNode); + divNode.appendChild(textNode); + divNode.appendChild(brNode); + return $(divNode).html() + "
"; + } \ No newline at end of file