Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-23391] Widget's pane needs an id for collapsing/expanding
  • Loading branch information
ialbors-pfc committed Jun 11, 2014
1 parent ea7def4 commit 41b4d7e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Expand Up @@ -76,6 +76,10 @@ public String getWidgetName() {

}

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

public boolean showWidget() {
return true;
}
Expand Down
Expand Up @@ -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>
Expand Down

0 comments on commit 41b4d7e

Please sign in to comment.