Skip to content
Permalink
Browse files
Fix for JENKINS-10443: Added way to mark all plugins to be updated at…
… once
  • Loading branch information
d-rep committed Sep 4, 2011
1 parent f2f1e72 commit 920e8cd7c9f0eddab2af0c6ad0c9cc0853b8491d
@@ -55,6 +55,9 @@
<!-- 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;

0 comments on commit 920e8cd

Please sign in to comment.