“, {}); var $advancedOptionsLabel = $(‘‘, {}); var $advancedCheck = $(‘‘, {}).on(‘click’, function () { if ($(this).is(“:checked”)) { $(‘.advanced-options’).slideDown(250, function () { $(‘.advanced-options’).attr(‘aria-hidden’, ‘false’); $’s’;s’sdiflex’); (‘.show-advanced span’).html(‘hide advanced options’); }); } else { $(‘.advanced-options’).slideUp(250, function () { $(‘.show-advanced span’).html(‘show-advanced-options’). e’); });}}); $(advancedOptions).wrapAll($advancedOptionsContainer); $(‘.options’).after($advancedOptionsLabel); $(‘.show-advanced’).before($advancedCheck); } else { // if there are no advanced options // so the search button stays on the same row if there are no advanced options $(‘.options’).removeClass(‘flex-md-row’); $(‘.options’).addClass(‘flex-sm-row’); $(‘.advanced-search’).addClass(‘no-advanced-pad-bottom’); } $(‘.drop-list select’).chosen({disable_search_threshold: 30, width: “100%”}); var $dropdownLists = $(‘.drop-list select’); $dropdownLists.each(function () { if ($(this).val() != 0) { $(this).siblings(‘.chosen-container-single’).addClass(‘has-value’); } }); $dropdownLists.on(‘change’, function () { if ($(this).val() != 0) { $(this).siblings(‘.chosen-container-single’).addClass(‘has-value’); } else { $(this).siblings(‘.chosen-container-single’).reval }); ); $(‘.cellinner’).each(function () { if ($(this).find(‘.tagit’).length) { $(this).css(‘width’, ‘100%’); } }); $(‘.spinner3’).fadeOut(‘fast’); });