From abf7d3a6bb5473524dfb70945e35e311208ea336 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 1 Feb 2016 16:11:30 -0500 Subject: [PATCH] try binding to this --- js/app.js | 2 +- js/custom/pageSetup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.17.1