提交 c36b2250 编写于 作者: K kohsuke

fixing up the nesting

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14056 71c3de6d-444a-0410-be80-ed276b4c234a
上级 4a646752
...@@ -5,12 +5,13 @@ ...@@ -5,12 +5,13 @@
<l:ajax> <l:ajax>
<t:setIconSize/> <t:setIconSize/>
<table><!-- throw away table tag to group rows together --> <table><!-- throw away table tag to group rows together -->
<j:set var="indenter" value="${it.createFixedIndenter(request.getParameter('depth'))}" /> <j:set var="depth" value="${request.getParameter('depth')}" />
<j:set var="indenter" value="${it.createFixedIndenter(depth)}" />
<j:forEach var="v" items="${it.views}"> <j:forEach var="v" items="${it.views}">
<t:projectViewNested /> <t:projectViewNested />
</j:forEach> </j:forEach>
<j:forEach var="job" items="${it.items}"> <j:forEach var="job" items="${it.items}">
<t:projectViewRow /> <t:projectViewRow jobBaseUrl="${rootURL}/${it.url}" />
</j:forEach> </j:forEach>
</table> </table>
</l:ajax> </l:ajax>
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
<tr> <tr>
<td colspan="2" style="text-align: center"> <td colspan="2" style="text-align: center">
<a href="#"> <a href="#">
<img src="${imagesURL}/tree/plus.png" state="plus" width="14" height="14" alt="" class="fold-control treeview-fold-control" url="./ajaxRows?depth=1"/> <img src="${imagesURL}/tree/plus.png" state="plus" width="14" height="14" alt="" class="fold-control treeview-fold-control"
url="${rootURL}/${v.url}/ajaxRows?depth=${h.ifThenElse(depth!=null,depth+1,1)}"/>
<st:adjunct includes="lib.hudson.projectViewNested" /> <st:adjunct includes="lib.hudson.projectViewNested" />
</a> </a>
<img src="${imagesURL}/${iconSize}/folder.gif" style="margin-left:4px" alt="" /> <img src="${imagesURL}/${iconSize}/folder.gif" style="margin-left:4px" alt="" />
......
...@@ -22,7 +22,7 @@ hudsonRules["IMG.treeview-fold-control"] = function(e) { ...@@ -22,7 +22,7 @@ hudsonRules["IMG.treeview-fold-control"] = function(e) {
YAHOO.util.Dom.setStyle(r, 'opacity', 0); // hide YAHOO.util.Dom.setStyle(r, 'opacity', 0); // hide
YAHOO.util.Dom.insertAfter(r, tr); YAHOO.util.Dom.insertAfter(r, tr);
Behaviour.applySubtree(r); Behaviour.applySubtree(r);
new YAHOO.util.Anim(r, anim, 0.5).animate(); new YAHOO.util.Anim(r, anim, 0.3).animate();
}); });
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册