bcbf8e38 by Jeff Balicki

advance-search fixed

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 83f42f20
...@@ -7507,6 +7507,12 @@ ...@@ -7507,6 +7507,12 @@
7507 $(this).closest('.searchandfilter')[0].reset(); 7507 $(this).closest('.searchandfilter')[0].reset();
7508 return false; 7508 return false;
7509 }); 7509 });
7510 $(document).on("click", '[name="_sf_submit"]', function (e) {
7511 console.log('submit');
7512 $(".searchandfilter").trigger("submit");
7513 // history.pushState(null, null, ajax_results_url);
7514 });
7515
7510 $(document).on("click", ".advance-search-button", function (e) { 7516 $(document).on("click", ".advance-search-button", function (e) {
7511 $('#search-box-content').addClass('show'); 7517 $('#search-box-content').addClass('show');
7512 $('.search-box').addClass('show'); 7518 $('.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(); ...@@ -17,7 +17,7 @@ get_header();
17 <div class="<?php echo esc_attr( $container ); ?> container search-content" id="content" tabindex="-1"> 17 <div class="<?php echo esc_attr( $container ); ?> container search-content" id="content" tabindex="-1">
18 <h1 class="sh1"><?php _e("Search results for:", 'msf'); ?></h1> 18 <h1 class="sh1"><?php _e("Search results for:", 'msf'); ?></h1>
19 <?php //get_search_form() ?> 19 <?php //get_search_form() ?>
20 <?php echo do_shortcode('[searchandfilter slug="what-are-you-looking-for-today"]'); echo do_shortcode('[advance-search search_id="112"]'); ?> 20 <?php echo do_shortcode('[searchandfilter slug="what-are-you-looking-for-today"]'); echo do_shortcode('[advance-search search_id="399"]'); ?>
21 <button class="btn btn-primary filter" data-bs-toggle="collapse" data-bs-target="#search-sidebar" role="button" aria-expanded="false" aria-controls="search-sidebar" > 21 <button class="btn btn-primary filter" data-bs-toggle="collapse" data-bs-target="#search-sidebar" role="button" aria-expanded="false" aria-controls="search-sidebar" >
22 <?php _e("SORT AND FILTER", 'msf'); ?> 22 <?php _e("SORT AND FILTER", 'msf'); ?>
23 </button> 23 </button>
......
...@@ -15,6 +15,14 @@ var Search = (function($) { ...@@ -15,6 +15,14 @@ var Search = (function($) {
15 $(this).closest('.searchandfilter')[0].reset(); 15 $(this).closest('.searchandfilter')[0].reset();
16 return false; 16 return false;
17 }); 17 });
18
19
20 $(document).on("click", '[name="_sf_submit"]', function(e){
21 console.log('submit');
22 $(".searchandfilter").trigger("submit");
23 // history.pushState(null, null, ajax_results_url);
24 });
25
18 26
19 $(document).on("click", ".advance-search-button", function(e){ 27 $(document).on("click", ".advance-search-button", function(e){
20 $('#search-box-content').addClass('show'); 28 $('#search-box-content').addClass('show');
......