提交 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 @@
<l:ajax>
<t:setIconSize/>
<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}">
<t:projectViewNested />
</j:forEach>
<j:forEach var="job" items="${it.items}">
<t:projectViewRow />
<t:projectViewRow jobBaseUrl="${rootURL}/${it.url}" />
</j:forEach>
</table>
</l:ajax>
......
......@@ -6,7 +6,8 @@
<tr>
<td colspan="2" style="text-align: center">
<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" />
</a>
<img src="${imagesURL}/${iconSize}/folder.gif" style="margin-left:4px" alt="" />
......
......@@ -22,7 +22,7 @@ hudsonRules["IMG.treeview-fold-control"] = function(e) {
YAHOO.util.Dom.setStyle(r, 'opacity', 0); // hide
YAHOO.util.Dom.insertAfter(r, tr);
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.
先完成此消息的编辑!
想要评论请 注册