Skip to content
Permalink
Browse files

[JENKINS-23391] Widget's pane needs an id for collapsing/expanding

  • Loading branch information
ialbors-pfc committed Jun 11, 2014
1 parent ea7def4 commit 41b4d7e9da5782350dc80583550a0dff52931b6c
@@ -76,6 +76,10 @@ public String getWidgetName() {

}

public String getWidgetId() {
return "next-exec";
}

public boolean showWidget() {
return true;
}
@@ -22,4 +22,9 @@ public boolean showWidget() {
DescriptorImpl d = (DescriptorImpl)(Hudson.getInstance().getDescriptorOrDie(NextBuilds.class));
return d.getShowPossibleWidget();
}

@Override
public String getWidgetId() {
return super.getWidgetId() + "-possible";
}
}
@@ -1,6 +1,6 @@
<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">
<j:if test="${it.showWidget()}">
<l:pane width="2" title="${it.widgetName}">
<l:pane width="2" title="${it.widgetName}" id="${it.widgetId}">
<j:forEach var="w" items="${it.builds}">
<tr>
<td><a tooltip="${w.name}" href="${w.url}">${w.shortName}</a></td>

0 comments on commit 41b4d7e

Please sign in to comment.
You can’t perform that action at this time.