From: codymorgan Date: Wed, 21 May 2014 13:18:03 +0000 (-0400) Subject: Anchored image breaks timer - bugfix X-Git-Tag: v5.2.3~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5189%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Anchored image breaks timer - bugfix If the slider image is wrapped in an anchor tag the timer never starts because line 278 was looking for a direct child image. changed to .find('img') to locate inner images --- diff --git a/js/foundation/foundation.orbit.js b/js/foundation/foundation.orbit.js index 35147d812..5b5e66714 100644 --- a/js/foundation/foundation.orbit.js +++ b/js/foundation/foundation.orbit.js @@ -275,7 +275,7 @@ self.build_markup(); if (settings.timer) { self.cache.timer = self.create_timer(); - Foundation.utils.image_loaded(this.slides().children('img'), self.cache.timer.start); + Foundation.utils.image_loaded(this.slides().find('img'), self.cache.timer.start); } animate = new CSSAnimation(settings, slides_container);