@@ -49,21 +49,21 @@ let categoryTable = [
4949] ;
5050
5151function 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-
6767function 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
7790function createTable ( data ) {
0 commit comments