提交 0da5be71 编写于 作者: A appr 提交者: Kohsuke Kawaguchi

[FIXED JENKINS-10044] Restart button does not restart jenkins after plugin upload

Restart button that appears under list of installed plugins after plugin
upload does not restart jenkins when clicked.

More than that, after turning on/off some of installed plugins,
two restart buttons appear (only one of them work) on the page in
question.

Such behaviour should definitely be fixed.
上级 19b81cfb
......@@ -55,6 +55,9 @@ Upcoming changes</a>
<!-- Record your changes in the trunk here. -->
<div id="trunk" style="display:none"><!--=TRUNK-BEGIN=-->
<ul class=image>
<li class=bug>
Restart button does not restart jenkins after plugin upload
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-10044">issue 10044</a>)
<li class=rfe>
Groovy script console is now syntax highlighted.
<li class=rfe>
......
......@@ -104,16 +104,6 @@ THE SOFTWARE.
</j:choose>
</table>
<j:if test="${it.isPluginUploaded()}">
<div style="margin: 1em; height: 1em">
<div class="error">
${%New plugins will take effect once you restart Jenkins}
<j:if test="${app.lifecycle.canRestart()}">
<s:submit value="${%Restart Once No Jobs Are Running}" />
</j:if>
</div>
</div>
</j:if>
<div class="warning" id="needRestart" style="display:none; margin: 1em; height: 1em">
<form method="post" action="${rootURL}/safeRestart">
${%Changes will take effect when you restart Jenkins}
......@@ -145,6 +135,9 @@ THE SOFTWARE.
return String(e.checked)!=e.getAttribute('original');
});
<j:if test="${it.isPluginUploaded()}">
e = true;
</j:if>
$('needRestart').style.display = (e!=null?"block":"none");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册