ef9910ac by Jeff Balicki

news

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 47860bac
......@@ -20733,7 +20733,17 @@
$('.badge').show();
});
}
$(document).on("change", ' #top-news-select input[type="radio"][name="_sft_category[]"]', function (e) {
if (this.value == 'news') {
$('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change');
//$('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked');
} else if (this.value == 'events') {
$('form input[type="radio"][name="_sft_category[]"][value="events"]').attr('checked', 'checked').trigger('change');
//$('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked');
}
});
}
return {
init: init
};
......@@ -26441,26 +26451,20 @@
trim_text();
}, 100);
}
if (url.includes('news')) {
setTimeout(function () {
$('html, body, #page').animate({
scrollTop: $("#search-wrapper").offset().top - 250
}, 100);
myLazyLoad.update();
trim_text();
}, 100);
}
});
this.addEventListener('error', function () {});
origOpen.apply(this, arguments);
};
})();
$(document).on("change", ' #top-news-select input[type="radio"][name="_sft_category[]"]', function (e) {
if (this.value == 'news') {
$('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change');
$('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked');
setTimeout(function () {
myLazyLoad.update();
}, 1000);
} else if (this.value == 'events') {
$('form input[type="radio"][name="_sft_category[]"][value="events"]').attr('checked', 'checked').trigger('change');
$('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked');
setTimeout(function () {
myLazyLoad.update();
}, 1000);
}
});
});
document.addEventListener('wpcf7mailsent', function (event) {
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($) {
var myModal = document.getElementById('advance-search-modal');
if(myModal){
myModal.addEventListener('hidden.bs.modal', function () {
$('#search-box-content').removeClass('show');
$('.search-box').removeClass('show');
$('.badge').show();
})
myModal.addEventListener('hidden.bs.modal', function () {
$('#search-box-content').removeClass('show');
$('.search-box').removeClass('show');
$('.badge').show();
})
}
$(document).on("change",' #top-news-select input[type="radio"][name="_sft_category[]"]', function(e){
if (this.value == 'news') {
$('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change');
//$('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked');
}
else if (this.value == 'events') {
$('form input[type="radio"][name="_sft_category[]"][value="events"]').attr('checked', 'checked').trigger('change');
//$('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked');
}
});
}
......
......@@ -86,6 +86,15 @@ jQuery(document).ready(function($) {
trim_text();
}, 100);
}
if(url.includes('news')){
setTimeout(function(){
$('html, body, #page').animate({
scrollTop: $("#search-wrapper").offset().top - 250
}, 100);
myLazyLoad.update();
trim_text();
}, 100);
}
});
this.addEventListener('error', function() {
});
......@@ -94,22 +103,7 @@ jQuery(document).ready(function($) {
})();
$(document).on("change",' #top-news-select input[type="radio"][name="_sft_category[]"]', function(e){
if (this.value == 'news') {
$('form input[type="radio"][name="_sft_category[]"][value="news"]').attr('checked', 'checked').trigger('change');
$('form input[type="radio"][name="_sft_category[]"][value="events"]').removeAttr('checked');
setTimeout(function(){
myLazyLoad.update();
}, 1000);
}
else if (this.value == 'events') {
$('form input[type="radio"][name="_sft_category[]"][value="events"]').attr('checked', 'checked').trigger('change');
$('form input[type="radio"][name="_sft_category[]"][value="news"]').removeAttr('checked');
setTimeout(function(){
myLazyLoad.update();
}, 1000);
}
});
});
......
......@@ -2,5 +2,5 @@
Theme Name: MSF CA Child
Author: Tenzing Communications
Template: msf-ca
Version: 1.0.532
Version: 1.0.533
*/
\ No newline at end of file
......