From: me-kell Date: Sat, 7 Jun 2014 13:36:48 +0000 (+0200) Subject: active first li element no working in firefox X-Git-Tag: v5.3.1~31^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5289%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git active first li element no working in firefox In firefox the slide is not showing when first li is marked with class="active". If none of the li elements is marked or other than the first, everything works as expected. Do removeClass('active') and self._goto($init_target.index()) only if idx != $init_target.index() --- diff --git a/js/foundation/foundation.orbit.js b/js/foundation/foundation.orbit.js index 9aec4cd43..f9aa0366a 100644 --- a/js/foundation/foundation.orbit.js +++ b/js/foundation/foundation.orbit.js @@ -284,8 +284,10 @@ var $init_target = slides_container.find("." + settings.active_slide_class), animation_speed = settings.animation_speed; settings.animation_speed = 1; - $init_target.removeClass('active'); - self._goto($init_target.index()); + if (idx != $init_target.index()) { + $init_target.removeClass('active'); + self._goto($init_target.index()); + } settings.animation_speed = animation_speed; }