bcbf8e38 by Jeff Balicki

advance-search fixed

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 83f42f20
......@@ -7507,6 +7507,12 @@
$(this).closest('.searchandfilter')[0].reset();
return false;
});
$(document).on("click", '[name="_sf_submit"]', function (e) {
console.log('submit');
$(".searchandfilter").trigger("submit");
// history.pushState(null, null, ajax_results_url);
});
$(document).on("click", ".advance-search-button", function (e) {
$('#search-box-content').addClass('show');
$('.search-box').addClass('show');
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -17,7 +17,7 @@ get_header();
<div class="<?php echo esc_attr( $container ); ?> container search-content" id="content" tabindex="-1">
<h1 class="sh1"><?php _e("Search results for:", 'msf'); ?></h1>
<?php //get_search_form() ?>
<?php echo do_shortcode('[searchandfilter slug="what-are-you-looking-for-today"]'); echo do_shortcode('[advance-search search_id="112"]'); ?>
<?php echo do_shortcode('[searchandfilter slug="what-are-you-looking-for-today"]'); echo do_shortcode('[advance-search search_id="399"]'); ?>
<button class="btn btn-primary filter" data-bs-toggle="collapse" data-bs-target="#search-sidebar" role="button" aria-expanded="false" aria-controls="search-sidebar" >
<?php _e("SORT AND FILTER", 'msf'); ?>
</button>
......
......@@ -16,6 +16,14 @@ var Search = (function($) {
return false;
});
$(document).on("click", '[name="_sf_submit"]', function(e){
console.log('submit');
$(".searchandfilter").trigger("submit");
// history.pushState(null, null, ajax_results_url);
});
$(document).on("click", ".advance-search-button", function(e){
$('#search-box-content').addClass('show');
$('.search-box').addClass('show');
......