diff options
Diffstat (limited to 'js/carousel.js')
| -rw-r--r-- | js/carousel.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/carousel.js b/js/carousel.js index 99a077c10..1e8215c8b 100644 --- a/js/carousel.js +++ b/js/carousel.js @@ -65,7 +65,7 @@ } Carousel.prototype.getItemIndex = function (item) { - this.$items = item.parent().children('.item') + this.$items = item.parent().children('.carousel-item') return this.$items.index(item || this.$active) } @@ -81,7 +81,7 @@ Carousel.prototype.to = function (pos) { var that = this - var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active')) + var activeIndex = this.getItemIndex(this.$active = this.$element.find('.carousel-item.active')) if (pos > (this.$items.length - 1) || pos < 0) return @@ -115,7 +115,7 @@ } Carousel.prototype.slide = function (type, next) { - var $active = this.$element.find('.item.active') + var $active = this.$element.find('.carousel-item.active') var $next = next || this.getItemForDirection(type, $active) var isCycling = this.interval var direction = type == 'next' ? 'left' : 'right' |
