提交 d8d09b42 编写于 作者: K kohsuke

fixed memory leak issue.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4622 71c3de6d-444a-0410-be80-ed276b4c234a
上级 26620e13
......@@ -65,7 +65,8 @@
</tr>
</j:forEach>
</j:forEach>
<j:if test="${!h.isAutoRefresh(request)}">
<!-- schedule updates only for the full page reload -->
<j:if test="${ajax==null and !h.isAutoRefresh(request)}">
<script defer="defer">
refreshPart('executors',"./ajaxExecutors");
</script>
......
......@@ -57,7 +57,7 @@
</table>
</j:otherwise>
</j:choose>
<j:if test="${attrs.autoRefresh and !h.isAutoRefresh(request)}">
<j:if test="${ajax==null and attrs.autoRefresh and !h.isAutoRefresh(request)}">
<script defer="defer">
refreshPart('matrix',"./ajaxMatrix");
</script>
......
......@@ -43,7 +43,8 @@
</j:forEach>
</j:otherwise>
</j:choose>
<j:if test="${!h.isAutoRefresh(request)}">
<!-- schedule updates only for the full page reload -->
<j:if test="${ajax==null and !h.isAutoRefresh(request)}">
<script defer="defer">
refreshPart('buildQueue',"./ajaxBuildQueue");
</script>
......
......@@ -22,7 +22,8 @@
<j:new var="h" className="hudson.Functions" /><!-- instead of JSP functions -->
<j:set var="resURL" value="${rootURL}${h.resourcePath}" />
<j:set var="imagesURL" value="${rootURL}${h.resourcePath}/images" />
<j:set var="ajax" value="true"/>
<d:invokeBody/>
</j:otherwise>
</j:choose>
......
......@@ -383,10 +383,13 @@ function refreshPart(id,url) {
var node = div.firstChild;
p.insertBefore(node, next);
Behaviour.applySubtree(node);
refreshPart(id,url);
}
});
}, 5000);
}, 500);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册