提交 63dbf2fa 编写于 作者: O Oliver Gondža

Merge pull request #1198 from daniel-beck/JENKINS-22674

[FIXED JENKINS-22674] Use JS to resize graph.
......@@ -58,8 +58,14 @@ THE SOFTWARE.
${%Long}
</j:otherwise>
</j:choose>
</div>
<img src="${prefix?:'loadStatistics'}/graph?type=${type}&amp;width=500&amp;height=300" alt="[${%Load statistics graph}]" />
</div>
<script type="text/javascript">
var w = document.getElementById('main-panel').offsetWidth - 30;
document.write('<img src="${prefix?:'loadStatistics'}/graph?type=${type}&amp;width=' + w + '&amp;height=500" alt="[${%Load statistics graph}]" />');
</script>
<noscript>
<img src="${prefix?:'loadStatistics'}/graph?type=${type}&amp;width=500&amp;height=300" alt="[${%Load statistics graph}]" />
</noscript>
<div style="margin-top: 2em;">
${%blurb}
</div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册