Skip to content

Commit f0a0a76

Browse files
committed
multiselect
1 parent 8103728 commit f0a0a76

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

src/js/tabs/auxiliary.js

+19-6
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@ let categoryTable = [
4949
];
5050

5151
function isInBuildKey(map, name) {
52-
if (name === 'all') {
52+
if (name == 'all') {
5353
return true;
5454
}
5555
for (let i = 0; i < map.length; i++) {
5656
if (name == map[i].buildKey) {
57-
return FC.CONFIG.buildOptions.includes(map[i].buildOption);
57+
for (let y = 0; y < map[i].buildOption.length; y++) {
58+
if (FC.CONFIG.buildOptions.includes(map[i].buildOption[y])) {
59+
return true;
60+
}
61+
}
5862
}
5963
}
6064
return false;
6165
}
6266

63-
function isFlightMode(name) {
64-
return flightModes.includes(name);
65-
}
66-
6767
function createCategorySelect(table) {
6868
let categorySelect = $('select.auxiliary_category_select');
6969

@@ -72,6 +72,19 @@ function createCategorySelect(table) {
7272
categorySelect.append(`<option value="${table[i].name}">${table[i].name}</option>`);
7373
}
7474
}
75+
76+
categorySelect.multipleSelect({
77+
filter: true,
78+
// locale: selectOptions,
79+
showClear: true,
80+
// minimumCountSelected : minimumCountSelected,
81+
placeholder: i18n.getMessage("dropDownFilterDisabled"),
82+
// onClick: () => { this.updateSearchResults(); },
83+
// onCheckAll: () => { this.updateSearchResults(); },
84+
// onUncheckAll: () => { this.updateSearchResults(); },
85+
formatSelectAll() { return i18n.getMessage("dropDownSelectAll"); },
86+
formatAllSelected() { return i18n.getMessage("dropDownAll"); },
87+
});
7588
}
7689

7790
function createTable(data) {

src/tabs/auxiliary.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</div>
2525
</div>
2626
</td>
27-
<td>&nbsp;</td>
27+
<td>&nbsp;&nbsp;&nbsp;</td>
2828
<td vertical-align: bottom;>
2929
<div class="toolbox">
3030
<form>

0 commit comments

Comments
 (0)