Skip to content

Commit

Permalink
Merge pull request #4020 from nesl247/orbit_click_content_shows_empty…
Browse files Browse the repository at this point in the history
…_div

Orbit click content shows empty slide
  • Loading branch information
Jordan Humphreys committed Jan 9, 2014
2 parents 6dd3718 + b793477 commit e6c4d0a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions js/foundation/foundation.orbit.js
Expand Up @@ -161,11 +161,20 @@
}
};

self.link_bullet = function(e) {
self.link_bullet = function(e) {
var index = $(this).attr('data-orbit-slide');
if ((typeof index === 'string') && (index = $.trim(index)) != "") {
self._goto(parseInt(index));
if(isNaN(parseInt(index)))
{
var slide = container.find('[data-orbit-slide='+index+']');
if (slide.index() != -1) {self._goto(slide.index() + 1);}
}
else
{
self._goto(parseInt(index));
}
}

}

self.timer_callback = function() {
Expand Down

0 comments on commit e6c4d0a

Please sign in to comment.