Skip to content

Commit

Permalink
[JENKINS-13619] - Display default values in multi-config checkboxes
Browse files Browse the repository at this point in the history
Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>
  • Loading branch information
oleg-nenashev committed May 17, 2014
1 parent 8d384e3 commit bdad9a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Expand Up @@ -78,5 +78,9 @@ public static class DescriptorImpl extends Descriptor<ThrottleMatrixProjectOptio
public String getDisplayName() {
return Messages.ThrottleMatrixProjectOptions_DisplayName();
}

public ThrottleMatrixProjectOptions getDefaults() {
return ThrottleMatrixProjectOptions.DEFAULT;
}
}
}
@@ -1,8 +1,8 @@
<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" xmlns:p="/lib/hudson/project">
<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" xmlns:p="/lib/hudson/project">
<f:entry field="throttleMatrixBuilds" title="${%throttleMatrixBuilds.title}">
<f:checkbox/>
<f:checkbox default="${descriptor.defaults.throttleMatrixBuilds}"/>
</f:entry>
<f:entry field="throttleMatrixConfigurations" title="${%throttleMatrixConfigurations.title}">
<f:checkbox/>
<f:checkbox default="${descriptor.defaults.throttleMatrixConfigurations}"/>
</f:entry>
</j:jelly>

0 comments on commit bdad9a6

Please sign in to comment.