提交 920e8cd7 编写于 作者: D Drew Repasky

Fix for JENKINS-10443: Added way to mark all plugins to be updated at once

上级 f2f1e720
......@@ -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>
Added way to mark all plugins to be updated at once
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-10443">issue 10443</a>)
<li class=bug>
Fixed a bug in the UI JavaScript behavior with IE
<li class=bug>
......
......@@ -29,6 +29,7 @@ THE SOFTWARE.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<local:table page="updates" list="${app.updateCenter.updates}" xmlns:local="/hudson/PluginManager">
<div style="margin-top:1em">
Select: <a href="javascript:toggleCheckboxes(true);">All</a>, <a href="javascript:toggleCheckboxes(false);">None</a><br/>
${%UpdatePageDescription}
<j:if test="${!empty(app.updateCenter.jobs)}">
<br/> ${%UpdatePageLegend(rootURL+'/updateCenter/')}
......
......@@ -1944,6 +1944,19 @@ function buildFormTree(form) {
}
}
/**
* @param {boolean} toggle
* When true, will check all checkboxes in the page. When false, unchecks them all.
*/
var toggleCheckboxes = function(toggle) {
var inputs = document.getElementsByTagName("input");
for(var i=0; i<inputs.length; i++) {
if(inputs[i].type === "checkbox") {
inputs[i].checked = toggle;
}
}
};
// this used to be in prototype.js but it must have been removed somewhere between 1.4.0 to 1.5.1
String.prototype.trim = function() {
var temp = this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册