From: Steve Sutton Date: Mon, 1 Feb 2016 21:11:30 +0000 (-0500) Subject: try binding to this X-Git-Tag: v1.0.0^2~8 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=abf7d3a6bb5473524dfb70945e35e311208ea336;p=WP-Themes%2Fotsego.git try binding to this --- diff --git a/js/app.js b/js/app.js index 19d6e31..00469a9 100644 --- a/js/app.js +++ b/js/app.js @@ -105,7 +105,7 @@ $(document).ready(function () { $('#cam3').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoAirCam.jpg?b=' + Math.random()); $('#cam4').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoAnimalCam.jpg?b=' + Math.random()); $('#cam5').attr('src','http://www.weather.gov/images/apx/webcam/webcam.jpg?b=' + Math.random()); - setTimeout("glmReloadImg()", 10000); + setTimeout(this.glmReloadImg().bind(this), 10000); } glmReloadImg(); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 3004c8e..a0bd020 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -96,7 +96,7 @@ $(document).ready(function () { $('#cam3').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoAirCam.jpg?b=' + Math.random()); $('#cam4').attr('src','http://www.otsegocountymi.gov/images/OtsegoCoAnimalCam.jpg?b=' + Math.random()); $('#cam5').attr('src','http://www.weather.gov/images/apx/webcam/webcam.jpg?b=' + Math.random()); - setTimeout("glmReloadImg()", 10000); + setTimeout(this.glmReloadImg().bind(this), 10000); } glmReloadImg();