File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1318,16 +1318,20 @@ function init_results_autohide() {
1318
1318
1319
1319
function init_searchable_option_list ( ) {
1320
1320
function init_sol_on_type_combobox ( ) {
1321
+ var $type = $ ( '#type' ) ;
1322
+ if ( $type . length === 0 ) {
1323
+ return ;
1324
+ }
1321
1325
/**
1322
1326
* Has to be here because otherwise the offset()
1323
1327
* takes the original long <select> box and the max-height
1324
1328
* does not work then.
1325
1329
*/
1326
- $ ( '# type' ) . searchableOptionList ( {
1330
+ $type . searchableOptionList ( {
1327
1331
texts : {
1328
1332
searchplaceholder : 'Click here to restrict the file type'
1329
1333
} ,
1330
- maxHeight : $ ( '# type' ) . offset ( ) . top + 'px' ,
1334
+ maxHeight : $type . offset ( ) . top + 'px' ,
1331
1335
/**
1332
1336
* Defined in menu.jsp just next to the original <select>
1333
1337
*/
You can’t perform that action at this time.
0 commit comments