提交 197ef8ce 编写于 作者: M mindless

[HUDSON-7041] add anchor *after* copying e.innerHTML, so anchor isn't added in 2 places.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@33171 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c97593de
......@@ -27,11 +27,11 @@
queue.push(e);
} else {
var id = "ant-target-"+(iota++);
outline.appendChild(parseHtml("<li><a href='#"+id+"'>"+e.innerHTML+"</a></li>"))
var a = document.createElement("a");
a.setAttribute("name",id);
e.appendChild(a);
outline.appendChild(parseHtml("<li><a href='#"+id+"'>"+e.innerHTML+"</a></li>"))
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册