src/main/webapp/WEB-INF/jspf/sort-box.jspf

changeset 401
bf220daedabe
parent 271
f8f5e82944fa
--- a/src/main/webapp/WEB-INF/jspf/sort-box.jspf	Tue Oct 07 10:08:34 2025 +0200
+++ b/src/main/webapp/WEB-INF/jspf/sort-box.jspf	Thu Oct 09 11:49:39 2025 +0200
@@ -2,10 +2,11 @@
 Page attribute:
   sortPriority: String
   currentSort: IssueSorter.Criteria
+  defaultSort: IssueSorter.Criteria
 --%>
 <div style="display: inline-block">
     <label class="caption" style="display:block;" for="sort_${sortPriority}"><fmt:message key="issue.filter.sort.${sortPriority}"/></label>
-    <select id="sort_${sortPriority}" name="sort_${sortPriority}">
+    <select id="sort_${sortPriority}" name="sort_${sortPriority}" data-default="${defaultSort}">
         <c:forEach var="criteria" items="${viewmodel.filter.sortCriteria}">
             <option value="${criteria}" <c:if test="${currentSort eq criteria}">selected</c:if> >
                 <fmt:message key="${criteria.field.resourceKey}"/>

mercurial