s
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
12 changed files
with
36 additions
and
16 deletions
| ... | @@ -18332,6 +18332,15 @@ ul.sf_date_field .sf-datepicker { | ... | @@ -18332,6 +18332,15 @@ ul.sf_date_field .sf-datepicker { |
| 18332 | #advance-search-modal .select2-container--default .select2-search--inline .select2-search__field { | 18332 | #advance-search-modal .select2-container--default .select2-search--inline .select2-search__field { |
| 18333 | min-width: 200px !important; | 18333 | min-width: 200px !important; |
| 18334 | } | 18334 | } |
| 18335 | #advance-search-modal .searching-loading { | ||
| 18336 | display: none; | ||
| 18337 | font-size: 50px; | ||
| 18338 | } | ||
| 18339 | #advance-search-modal .spinner-border { | ||
| 18340 | --bs-spinner-width: 3rem; | ||
| 18341 | --bs-spinner-height: 3rem; | ||
| 18342 | color: #e00 !important; | ||
| 18343 | } | ||
| 18335 | #advance-search-modal .btn-close { | 18344 | #advance-search-modal .btn-close { |
| 18336 | opacity: 1; | 18345 | opacity: 1; |
| 18337 | } | 18346 | } | ... | ... |
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.
| ... | @@ -18,6 +18,11 @@ function advance_search($atts){ | ... | @@ -18,6 +18,11 @@ function advance_search($atts){ |
| 18 | </div> | 18 | </div> |
| 19 | <div class="modal-body"> | 19 | <div class="modal-body"> |
| 20 | <?php echo do_shortcode('[searchandfilter id="'.$search_id.'"]'); ?> | 20 | <?php echo do_shortcode('[searchandfilter id="'.$search_id.'"]'); ?> |
| 21 | <div class="searching-loading"> Searching... | ||
| 22 | <div class="spinner-border text-danger" role="status"> | ||
| 23 | <span class="visually-hidden"Searching>...</span> | ||
| 24 | </div> | ||
| 25 | </div> | ||
| 21 | </div> | 26 | </div> |
| 22 | </div> | 27 | </div> |
| 23 | </div> | 28 | </div> | ... | ... |
| ... | @@ -7508,16 +7508,13 @@ | ... | @@ -7508,16 +7508,13 @@ |
| 7508 | return false; | 7508 | return false; |
| 7509 | }); | 7509 | }); |
| 7510 | $(document).on("click", '#advance-search-modal [name="_sf_submit"]', function (e) { | 7510 | $(document).on("click", '#advance-search-modal [name="_sf_submit"]', function (e) { |
| 7511 | console.log('submit'); | 7511 | $('#advance-search-modal .searchandfilter').hide(); |
| 7512 | $('[data-sf-form-id="399"]').trigger("submit"); | 7512 | $('[data-sf-form-id="399"]').trigger("submit"); |
| 7513 | $('.btn-close').click(); | 7513 | $('.searching-loading').show(); |
| 7514 | $('#search-box-content').removeClass('show'); | 7514 | setTimeout(() => { |
| 7515 | $('.search-box').removeClass('show'); | 7515 | window.location.href = window.location.href; |
| 7516 | $('.badge').show(); | 7516 | }, "2000"); |
| 7517 | //location.reload(); | ||
| 7518 | // history.pushState(null, null, ajax_results_url); | ||
| 7519 | }); | 7517 | }); |
| 7520 | |||
| 7521 | $(document).on("click", ".advance-search-button", function (e) { | 7518 | $(document).on("click", ".advance-search-button", function (e) { |
| 7522 | $('#search-box-content').addClass('show'); | 7519 | $('#search-box-content').addClass('show'); |
| 7523 | $('.search-box').addClass('show'); | 7520 | $('.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.
| ... | @@ -18,14 +18,12 @@ var Search = (function($) { | ... | @@ -18,14 +18,12 @@ var Search = (function($) { |
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | $(document).on("click", '#advance-search-modal [name="_sf_submit"]', function(e){ | 20 | $(document).on("click", '#advance-search-modal [name="_sf_submit"]', function(e){ |
| 21 | console.log('submit'); | 21 | $('#advance-search-modal .searchandfilter').hide(); |
| 22 | $('[data-sf-form-id="399"]').trigger("submit"); | 22 | $('[data-sf-form-id="399"]').trigger("submit"); |
| 23 | $('.btn-close').click() | 23 | $('.searching-loading').show(); |
| 24 | $('#search-box-content').removeClass('show'); | 24 | setTimeout(() => { |
| 25 | $('.search-box').removeClass('show'); | 25 | window.location.href = window.location.href |
| 26 | $('.badge').show(); | 26 | }, "2000"); |
| 27 | //location.reload(); | ||
| 28 | // history.pushState(null, null, ajax_results_url); | ||
| 29 | }); | 27 | }); |
| 30 | 28 | ||
| 31 | 29 | ... | ... |
| ... | @@ -431,6 +431,17 @@ ul.sf_date_field { | ... | @@ -431,6 +431,17 @@ ul.sf_date_field { |
| 431 | .select2-container--default .select2-search--inline .select2-search__field{ | 431 | .select2-container--default .select2-search--inline .select2-search__field{ |
| 432 | min-width: 200px !important; | 432 | min-width: 200px !important; |
| 433 | } | 433 | } |
| 434 | .searching-loading{ | ||
| 435 | display: none; | ||
| 436 | font-size: 50px; | ||
| 437 | } | ||
| 438 | .spinner-border{ | ||
| 439 | --bs-spinner-width: 3rem; | ||
| 440 | --bs-spinner-height: 3rem; | ||
| 441 | color: #e00 !important; | ||
| 442 | |||
| 443 | } | ||
| 444 | |||
| 434 | .btn-close { | 445 | .btn-close { |
| 435 | opacity: 1; | 446 | opacity: 1; |
| 436 | @media screen and (max-width: 56.25rem) { | 447 | @media screen and (max-width: 56.25rem) { | ... | ... |
-
Please register or sign in to post a comment