diff --git a/src/owl.carousel2.thumbs.js b/src/owl.carousel2.thumbs.js index 7f11a80..2d3c940 100644 --- a/src/owl.carousel2.thumbs.js +++ b/src/owl.carousel2.thumbs.js @@ -1,7 +1,7 @@ /** * Thumbs Plugin * @version 2.0.0 - * @author Gijs Rogé + * @author Gijs Rogé * @license The MIT License (MIT) */ (function ($, window, document, undefined) { @@ -61,7 +61,7 @@ */ this._handlers = { 'prepared.owl.carousel': $.proxy(function (e) { - if (e.namespace && this.owl.options.thumbs && !this.owl.options.thumbImage && !this.owl.options.thumbPrerendered && !this.owl.options.thumbImage) { + if (e.namespace && this.owl.options.thumbs && !this.owl.options.thumbImage && !this.owl.options.thumbsPrerendered && !this.owl.options.thumbImage) { if ($(e.content).find('[data-thumb]').attr('data-thumb') !== undefined) { this._thumbcontent.push($(e.content).find('[data-thumb]').attr('data-thumb')); } @@ -104,7 +104,8 @@ thumbs: true, thumbImage: false, thumbContainerClass: 'owl-thumbs', - thumbItemClass: 'owl-thumb-item' + thumbItemClass: 'owl-thumb-item', + moveThumbsInside: false }; @@ -117,7 +118,7 @@ //set default options var options = this.owl.options; - if (options.thumbPrerendered) { + if (options.thumbsPrerendered) { this._thumbcontent._thumbcontainer = $('.' + options.thumbContainerClass); } @@ -130,7 +131,7 @@ // get index of clicked thumbnail var index = $(e.target).parent().is(this._thumbcontent._thumbcontainer) ? $(e.target).index() : $(e.target).parent().index(); - if (options.thumbPrerendered) { + if (options.thumbsPrerendered) { // slide to slide :) $('[data-slider-id=' + this._identifier + ']').trigger('to.owl.carousel', index); } else { @@ -155,7 +156,10 @@ if (!options.thumbsPrerendered) { this._thumbcontent._thumbcontainer = $('