order the options in the modal selects

this will order the select options alphabetically

Signed-off-by: Florian Kraft <f.kraft@finn.de>
pull/3146/head
Florian Kraft 10 years ago
parent f301b56a92
commit c93c033128
  1. 2
      frontend/app/templates/work_packages/modals/columns.html
  2. 2
      frontend/app/templates/work_packages/modals/group_by.html
  3. 2
      frontend/app/templates/work_packages/modals/sorting.html

@ -10,7 +10,7 @@
<ui-select-match>
{{$item.title}}
</ui-select-match>
<ui-select-choices repeat="column in vm.unusedColumns | filter: { title: $select.search }"
<ui-select-choices repeat="column in vm.unusedColumns | filter: { title: $select.search } | orderBy:'title'"
refresh="updateUnusedColumns($select.selected)" refresh-delay="0">
<div ng-bind-html="column.title | highlight: $select.search"></div>
</ui-select-choices>

@ -7,7 +7,7 @@
<div>
<ui-select ng-model="vm.selectedColumnName" theme="select2" focus id="selected_columns_new" aria-labelledby="column_select_description">
<ui-select-match>{{$select.selected.title}}</ui-select-match>
<ui-select-choices repeat="column.name as column in vm.groupableColumns | filter: { title: $select.search }">
<ui-select-choices repeat="column.name as column in vm.groupableColumns | filter: { title: $select.search } | orderBy:'title'">
<div ng-bind-html="column.title | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>

@ -11,7 +11,7 @@
<div class="form--field-container">
<ui-select ng-model="element[0]" theme="select2" focus="!$index" aria-labelledby="sorting_select_description">
<ui-select-match>{{$select.selected.label}}</ui-select-match>
<ui-select-choices repeat="column as column in getRemainingAvailableColumnsData() | filter: { label: $select.search }">
<ui-select-choices repeat="column as column in getRemainingAvailableColumnsData() | filter: { label: $select.search } | orderBy:'label'">
<div ng-bind-html="column.label | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>

Loading…
Cancel
Save