Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ THE SOFTWARE.
<j:if test="${it.folderViews.primaryModifiable and views.size()>1}">
<f:entry title="${%Default View}" field="defaultView">
<div class="jenkins-select">
<select class="jenkins-select__input" name="primaryView">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to adapt this to f:select?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sooo... Choosing f:select would require refactoring the control according to the AJAX-fill model; I decided that this change was better, since it is a pattern already used in the core

https://github.com/jenkinsci/jenkins/blob/master/core/src/main/resources/hudson/views/GlobalDefaultViewConfiguration/config.jelly#L26

<select class="jenkins-select__input" name="primaryView" disabled="${readOnlyMode ? 'true' : null}">
<j:forEach var="v" items="${views}">
<j:choose>
<j:when test="${it.primaryView==v}">
Expand Down