File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 344
344
store = JSON . parse ( fs ) ;
345
345
$ ( '#filterControls' ) . css ( 'display' , store . filtDisplay ) ;
346
346
347
- if ( store . filtDisplay == 'none' )
348
- return ;
349
-
350
347
$ ( '#showHideFilters' ) . prop ( 'src' , "{{ url_for('static', filename='icn/minus-button.png') }}" ) ;
351
348
$ ( '#filtLanguage' ) . val ( parseInt ( store . filtLanguage ?? '0' ) ) ;
352
349
$ ( '#filtParentsOnly' ) . prop ( 'checked' , store . filtParentsOnly ?? false ) ;
364
361
const is_hidden = ( fc . css ( 'display' ) == 'none' ) ;
365
362
const new_src = is_hidden ? "{{ url_for('static', filename='icn/minus-button.png') }}" : "{{ url_for('static', filename='icn/plus-button.png') }}" ;
366
363
$ ( '#showHideFilters' ) . prop ( 'src' , new_src ) ;
367
- if ( ! is_hidden )
368
- handle_clear_filters ( ) ;
364
+ handle_clear_filters ( ) ;
369
365
fc . css ( 'display' , is_hidden ? 'block' : 'none' ) ;
370
366
handle_filter_update ( ) ;
371
367
} ;
You can’t perform that action at this time.
0 commit comments