fc83eda4 by Jeff Balicki

fix

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 1e6e5ac7
...@@ -26236,14 +26236,26 @@ ...@@ -26236,14 +26236,26 @@
26236 }, 100); 26236 }, 100);
26237 setTimeout(myLazyLoad.update(), 2000); 26237 setTimeout(myLazyLoad.update(), 2000);
26238 }); 26238 });
26239 $(document).on("click", ".page-item ", function (e) { 26239 (function () {
26240 setTimeout(function () { 26240 var origOpen = XMLHttpRequest.prototype.open;
26241 $('html, body, #page').animate({ 26241 XMLHttpRequest.prototype.open = function (method, url) {
26242 scrollTop: $("#search-wrapper").offset().top - 250 26242 this.addEventListener('load', function () {
26243 }, 100); 26243 console.log('XHR finished loading', method, url);
26244 console.log('click'); 26244 if (url.includes('search')) {
26245 }, 2000); 26245 setTimeout(function () {
26246 }); 26246 $('html, body, #page').animate({
26247 scrollTop: $("#search-wrapper").offset().top - 250
26248 }, 100);
26249 console.log('click');
26250 }, 2000);
26251 }
26252 });
26253 this.addEventListener('error', function () {
26254 console.log('XHR errored out', method, url);
26255 });
26256 origOpen.apply(this, arguments);
26257 };
26258 })();
26247 }); 26259 });
26248 document.addEventListener('wpcf7mailsent', function (event) { 26260 document.addEventListener('wpcf7mailsent', function (event) {
26249 jQuery('.appArea.responsive').hide(); 26261 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($) { ...@@ -56,14 +56,30 @@ jQuery(document).ready(function($) {
56 }); 56 });
57 57
58 58
59 $(document).on("click", ".page-item ", function(e){ 59
60 setTimeout(function(){ 60
61 $('html, body, #page').animate({ 61 (function() {
62 scrollTop: $("#search-wrapper").offset().top - 250 62 var origOpen = XMLHttpRequest.prototype.open;
63 }, 100); 63 XMLHttpRequest.prototype.open = function(method, url) {
64 console.log('click'); 64 this.addEventListener('load', function() {
65 }, 2000); 65 console.log('XHR finished loading', method, url);
66 }); 66 if(url.includes('search')){
67 setTimeout(function(){
68 $('html, body, #page').animate({
69 scrollTop: $("#search-wrapper").offset().top - 250
70 }, 100);
71 console.log('click');
72 }, 2000);
73 }
74
75 });
76
77 this.addEventListener('error', function() {
78 console.log('XHR errored out', method, url);
79 });
80 origOpen.apply(this, arguments);
81 };
82 })();
67 83
68 }); 84 });
69 85
......
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
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.479 5 Version: 1.0.480
6 */ 6 */
7 7
......