From 363041eeef5d7af668af3ba652aec0f0e0c6291b Mon Sep 17 00:00:00 2001 From: me-kell Date: Sat, 7 Jun 2014 15:36:48 +0200 Subject: [PATCH] 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() --- js/foundation/foundation.orbit.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.47.2