提交 4dd48c5d 编写于 作者: S Seiji Sogabe

Merge pull request #242 from flaviocdc/master

[JENKINS-10989] Repeated ids, expandTextArea() and multiple "Invoke Ant" build steps
......@@ -1413,16 +1413,19 @@ function scrollIntoView(e) {
// used in expandableTextbox.jelly to change a input field into a text area
function expandTextArea(button,id) {
button.style.display="none";
var field = document.getElementById(id);
var field = button.parentNode.previousSibling.children[0];
var value = field.value.replace(/ +/g,'\n');
var n = field;
while(n.tagName!="TABLE")
var n = button;
while (n.tagName != "TABLE")
{
n = n.parentNode;
n.parentNode.innerHTML =
}
n.parentNode.innerHTML =
"<textarea rows=8 class='setting-input' name='"+field.name+"'>"+value+"</textarea>";
}
// refresh a part of the HTML specified by the given ID,
// by using the contents fetched from the given URL.
function refreshPart(id,url) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册