qa
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
6 changed files
with
21 additions
and
13 deletions
| ... | @@ -20735,13 +20735,17 @@ | ... | @@ -20735,13 +20735,17 @@ |
| 20735 | } | 20735 | } |
| 20736 | $(document).on("change", ' #top-news-select input[type="radio"][name="_sft_category[]"]', function (e) { | 20736 | $(document).on("change", ' #top-news-select input[type="radio"][name="_sft_category[]"]', function (e) { |
| 20737 | if (this.value == 'news') { | 20737 | if (this.value == 'news') { |
| 20738 | $('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked'); | 20738 | // $('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked'); |
| 20739 | $('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change'); | 20739 | // $('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change'); |
| 20740 | window.location.href = window.location.href + '?_sft_category=news'; | 20740 | const search = new URLSearchParams(location.search); |
| 20741 | search.set('_sft_category', 'news'); | ||
| 20742 | location.search = search.toString(); | ||
| 20741 | } else if (this.value == 'events') { | 20743 | } else if (this.value == 'events') { |
| 20742 | $('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked'); | 20744 | // $('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked'); |
| 20743 | $('form input[type="radio"][name="_sft_category[]"][value="events"]').attr('checked', 'checked').trigger('change'); | 20745 | // $('form input[type="radio"][name="_sft_category[]"][value="events"]').attr('checked', 'checked').trigger('change'); |
| 20744 | window.location.href = window.location.href + '?_sft_category=events'; | 20746 | const search = new URLSearchParams(location.search); |
| 20747 | search.set('_sft_category', 'events'); | ||
| 20748 | location.search = search.toString(); | ||
| 20745 | } | 20749 | } |
| 20746 | }); | 20750 | }); |
| 20747 | } | 20751 | } | ... | ... |
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.
| ... | @@ -98,13 +98,17 @@ var Search = (function($) { | ... | @@ -98,13 +98,17 @@ var Search = (function($) { |
| 98 | 98 | ||
| 99 | $(document).on("change",' #top-news-select input[type="radio"][name="_sft_category[]"]', function(e){ | 99 | $(document).on("change",' #top-news-select input[type="radio"][name="_sft_category[]"]', function(e){ |
| 100 | if (this.value == 'news') { | 100 | if (this.value == 'news') { |
| 101 | $('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked'); | 101 | // $('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked'); |
| 102 | $('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change'); | 102 | // $('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change'); |
| 103 | window.location.href = window.location.href + '?_sft_category=news'; | 103 | const search = new URLSearchParams(location.search); |
| 104 | search.set('_sft_category', 'news'); | ||
| 105 | location.search = search.toString(); | ||
| 104 | }else if (this.value == 'events') { | 106 | }else if (this.value == 'events') { |
| 105 | $('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked'); | 107 | // $('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked'); |
| 106 | $('form input[type="radio"][name="_sft_category[]"][value="events"]').attr('checked', 'checked').trigger('change'); | 108 | // $('form input[type="radio"][name="_sft_category[]"][value="events"]').attr('checked', 'checked').trigger('change'); |
| 107 | window.location.href = window.location.href + '?_sft_category=events'; | 109 | const search = new URLSearchParams(location.search); |
| 110 | search.set('_sft_category', 'events'); | ||
| 111 | location.search = search.toString(); | ||
| 108 | } | 112 | } |
| 109 | }); | 113 | }); |
| 110 | 114 | ... | ... |
| ... | @@ -2,5 +2,5 @@ | ... | @@ -2,5 +2,5 @@ |
| 2 | Theme Name: MSF CA Child | 2 | Theme Name: MSF CA Child |
| 3 | Author: Tenzing Communications | 3 | Author: Tenzing Communications |
| 4 | Template: msf-ca | 4 | Template: msf-ca |
| 5 | Version: 1.0.536 | 5 | Version: 1.0.5301 |
| 6 | */ | 6 | */ |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment