Skip to content

Commit

Permalink
fixed wrong selector causing thumb items to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsroge committed Aug 26, 2015
1 parent 0804b6e commit 4a845f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/owl.carousel2.thumbs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*! owl.carousel2.thumbs - v0.1.5 | (c) 2015 @gijsroge | MIT license | https://github.com/gijsroge/OwlCarousel2-Thumbs */
/**
* Thumbs Plugin
* @version 2.0.0
Expand Down Expand Up @@ -129,7 +130,7 @@
this._identifier = $(e.target).closest('.' + options.thumbContainerClass).data('slider-id');

// get index of clicked thumbnail
var index = $(e.target).parent().is(this._thumbcontent._thumbcontainer) ? $(e.target).index() : $(e.target).parent().index();
var index = $(e.target).parent().is(this._thumbcontent._thumbcontainer) ? $(e.target).index() : $(e.target).closest('.'+options.thumbItemClass).index();

if (options.thumbsPrerendered) {
// slide to slide :)
Expand Down

1 comment on commit 4a845f2

@gijsroge
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #5

Please sign in to comment.