]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Anchored image breaks timer - bugfix 5189/head
authorcodymorgan <scodymorgan@gmail.com>
Wed, 21 May 2014 13:18:03 +0000 (09:18 -0400)
committercodymorgan <scodymorgan@gmail.com>
Wed, 21 May 2014 13:18:03 +0000 (09:18 -0400)
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

js/foundation/foundation.orbit.js

index 35147d8121c182e661358fee6444a9ec6d75de8a..5b5e6671409351046bc67ea4e5deef767b2b3a20 100644 (file)
       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);