fc83eda4 by Jeff Balicki

fix

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 1e6e5ac7
......@@ -26236,14 +26236,26 @@
}, 100);
setTimeout(myLazyLoad.update(), 2000);
});
$(document).on("click", ".page-item ", function (e) {
(function () {
var origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function (method, url) {
this.addEventListener('load', function () {
console.log('XHR finished loading', method, url);
if (url.includes('search')) {
setTimeout(function () {
$('html, body, #page').animate({
scrollTop: $("#search-wrapper").offset().top - 250
}, 100);
console.log('click');
}, 2000);
}
});
this.addEventListener('error', function () {
console.log('XHR errored out', method, url);
});
origOpen.apply(this, arguments);
};
})();
});
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.
......@@ -56,14 +56,30 @@ jQuery(document).ready(function($) {
});
$(document).on("click", ".page-item ", function(e){
(function() {
var origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url) {
this.addEventListener('load', function() {
console.log('XHR finished loading', method, url);
if(url.includes('search')){
setTimeout(function(){
$('html, body, #page').animate({
scrollTop: $("#search-wrapper").offset().top - 250
}, 100);
console.log('click');
}, 2000);
}
});
this.addEventListener('error', function() {
console.log('XHR errored out', method, url);
});
origOpen.apply(this, arguments);
};
})();
});
......
......@@ -2,6 +2,6 @@
Theme Name: MSF CA Child
Author: Tenzing Communications
Template: msf-ca
Version: 1.0.479
Version: 1.0.480
*/
......