提交 47d45678 编写于 作者: M mindless

Fix to allow multiple rowSets with same "name" parameter,

which can happen if multiple plugins use a config.jelly for the plugin class
(Hudson/configure.jelly does f:rowSet name="plugin" for each one).
Fix is to use the generated id for the id attribute rather than the given
name, so there are no duplicate ids.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14457 71c3de6d-444a-0410-be80-ed276b4c234a
上级 c646d9f5
......@@ -10,7 +10,7 @@
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<j:set var="id" value="${h.generateId()}" />
<j:set var="head" value="${h.ifThenElse(attrs.name!=null, attrs.name, 'rowGroupStart'+id)}"/>
<j:set var="head" value="rowGroupStart${id}"/>
<j:set var="ref" value="${h.ifThenElse(attrs.ref!=null, attrs.ref, head)}"/>
<tr id="${head}" style="display:none" name="${attrs.name}" />
......@@ -19,4 +19,4 @@
<script>
applyNameRef($$('${head}') , $$('rowGroupEnd${id}') , '${ref}')
</script>
</j:jelly>
\ No newline at end of file
</j:jelly>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册