Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.

Update on max slide length #228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/angular/directive/slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ function($animate, $timeout, $compile) {

var slidesLength = _this.__slider.slides.length;

// Don't allow pager to show with > 10 slides
if (slidesLength > 10) {
// Don't allow pager to show with > options.maxSlideLength or 10 slides if none is specified
if (slidesLength > (_this._options.maxSlideLength || 10)) {
$scope.showPager = false;
}

Expand Down