web/js/initbuild.js
// Update the ID list when any other parameter is changed

Update the ID list when any other parameter is changed
Update the ID list when any other parameter is changed
function updateMisc() {
        let faction = $('#faction-filter').val();
        let search = $('#title-filter').val().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
        $('.identity').each(function(id, i) {
            if (faction !== 'all' && !$(this).hasClass('faction-' + faction) || !$(this).find('.name').html().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").includes(search)) {
                $(this).addClass('hidden-misc');
                return;
            }
            $(this).removeClass('hidden-misc');
        });
    }
function updateMisc ( ) { let faction = $ ( '#faction-filter' ) . val ( ) ; let search = $ ( '#title-filter' ) . val ( ) . toLowerCase ( ) . normalize ( "NFD" ) . replace ( / [\u0300-\u036f] / g , "" ) ; $ ( '.identity' ) . each ( function ( id , i ) { if ( faction !== 'all' && ! $ ( this ) . hasClass ( 'faction-' + faction ) || ! $ ( this ) . find ( '.name' ) . html ( ) . toLowerCase ( ) . normalize ( "NFD" ) . replace ( / [\u0300-\u036f] / g , "" ) . includes ( search ) ) { $ ( this ) . addClass ( 'hidden-misc' ) ; return ; } $ ( this ) . removeClass ( 'hidden-misc' ) ; } ) ; }
Update the ID list when any other parameter is changed
Update the ID list when any other parameter is changed