@@ -49,21 +49,21 @@ let categoryTable = [
49
49
] ;
50
50
51
51
function isInBuildKey ( map , name ) {
52
- if ( name === 'all' ) {
52
+ if ( name == 'all' ) {
53
53
return true ;
54
54
}
55
55
for ( let i = 0 ; i < map . length ; i ++ ) {
56
56
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
+ }
58
62
}
59
63
}
60
64
return false ;
61
65
}
62
66
63
- function isFlightMode ( name ) {
64
- return flightModes . includes ( name ) ;
65
- }
66
-
67
67
function createCategorySelect ( table ) {
68
68
let categorySelect = $ ( 'select.auxiliary_category_select' ) ;
69
69
@@ -72,6 +72,19 @@ function createCategorySelect(table) {
72
72
categorySelect . append ( `<option value="${ table [ i ] . name } ">${ table [ i ] . name } </option>` ) ;
73
73
}
74
74
}
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
+ } ) ;
75
88
}
76
89
77
90
function createTable ( data ) {
0 commit comments