ef9910ac by Jeff Balicki

news

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 47860bac
...@@ -20733,7 +20733,17 @@ ...@@ -20733,7 +20733,17 @@
20733 $('.badge').show(); 20733 $('.badge').show();
20734 }); 20734 });
20735 } 20735 }
20736 $(document).on("change", ' #top-news-select input[type="radio"][name="_sft_category[]"]', function (e) {
20737 if (this.value == 'news') {
20738 $('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change');
20739 //$('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked');
20740 } else if (this.value == 'events') {
20741 $('form input[type="radio"][name="_sft_category[]"][value="events"]').attr('checked', 'checked').trigger('change');
20742 //$('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked');
20743 }
20744 });
20736 } 20745 }
20746
20737 return { 20747 return {
20738 init: init 20748 init: init
20739 }; 20749 };
...@@ -26441,26 +26451,20 @@ ...@@ -26441,26 +26451,20 @@
26441 trim_text(); 26451 trim_text();
26442 }, 100); 26452 }, 100);
26443 } 26453 }
26454 if (url.includes('news')) {
26455 setTimeout(function () {
26456 $('html, body, #page').animate({
26457 scrollTop: $("#search-wrapper").offset().top - 250
26458 }, 100);
26459 myLazyLoad.update();
26460 trim_text();
26461 }, 100);
26462 }
26444 }); 26463 });
26445 this.addEventListener('error', function () {}); 26464 this.addEventListener('error', function () {});
26446 origOpen.apply(this, arguments); 26465 origOpen.apply(this, arguments);
26447 }; 26466 };
26448 })(); 26467 })();
26449 $(document).on("change", ' #top-news-select input[type="radio"][name="_sft_category[]"]', function (e) {
26450 if (this.value == 'news') {
26451 $('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change');
26452 $('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked');
26453 setTimeout(function () {
26454 myLazyLoad.update();
26455 }, 1000);
26456 } else if (this.value == 'events') {
26457 $('form input[type="radio"][name="_sft_category[]"][value="events"]').attr('checked', 'checked').trigger('change');
26458 $('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked');
26459 setTimeout(function () {
26460 myLazyLoad.update();
26461 }, 1000);
26462 }
26463 });
26464 }); 26468 });
26465 document.addEventListener('wpcf7mailsent', function (event) { 26469 document.addEventListener('wpcf7mailsent', function (event) {
26466 jQuery('.appArea.responsive').hide(); 26470 jQuery('.appArea.responsive').hide();
......
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.
...@@ -89,12 +89,23 @@ var Search = (function($) { ...@@ -89,12 +89,23 @@ var Search = (function($) {
89 var myModal = document.getElementById('advance-search-modal'); 89 var myModal = document.getElementById('advance-search-modal');
90 90
91 if(myModal){ 91 if(myModal){
92 myModal.addEventListener('hidden.bs.modal', function () { 92 myModal.addEventListener('hidden.bs.modal', function () {
93 $('#search-box-content').removeClass('show'); 93 $('#search-box-content').removeClass('show');
94 $('.search-box').removeClass('show'); 94 $('.search-box').removeClass('show');
95 $('.badge').show(); 95 $('.badge').show();
96 }) 96 })
97 } 97 }
98
99 $(document).on("change",' #top-news-select input[type="radio"][name="_sft_category[]"]', function(e){
100 if (this.value == 'news') {
101 $('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change');
102 //$('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked');
103 }
104 else if (this.value == 'events') {
105 $('form input[type="radio"][name="_sft_category[]"][value="events"]').attr('checked', 'checked').trigger('change');
106 //$('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked');
107 }
108 });
98 109
99 110
100 } 111 }
......
...@@ -86,6 +86,15 @@ jQuery(document).ready(function($) { ...@@ -86,6 +86,15 @@ jQuery(document).ready(function($) {
86 trim_text(); 86 trim_text();
87 }, 100); 87 }, 100);
88 } 88 }
89 if(url.includes('news')){
90 setTimeout(function(){
91 $('html, body, #page').animate({
92 scrollTop: $("#search-wrapper").offset().top - 250
93 }, 100);
94 myLazyLoad.update();
95 trim_text();
96 }, 100);
97 }
89 }); 98 });
90 this.addEventListener('error', function() { 99 this.addEventListener('error', function() {
91 }); 100 });
...@@ -94,22 +103,7 @@ jQuery(document).ready(function($) { ...@@ -94,22 +103,7 @@ jQuery(document).ready(function($) {
94 })(); 103 })();
95 104
96 105
97 $(document).on("change",' #top-news-select input[type="radio"][name="_sft_category[]"]', function(e){ 106
98 if (this.value == 'news') {
99 $('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change');
100 $('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked');
101 setTimeout(function(){
102 myLazyLoad.update();
103 }, 1000);
104 }
105 else if (this.value == 'events') {
106 $('form input[type="radio"][name="_sft_category[]"][value="events"]').attr('checked', 'checked').trigger('change');
107 $('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked');
108 setTimeout(function(){
109 myLazyLoad.update();
110 }, 1000);
111 }
112 });
113 107
114 }); 108 });
115 109
......
...@@ -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.532 5 Version: 1.0.533
6 */ 6 */
...\ No newline at end of file ...\ No newline at end of file
......