Skip to content

Commit

Permalink
do not show pagination if less than 2 slides
Browse files Browse the repository at this point in the history
  • Loading branch information
VivienLN committed Feb 9, 2016
1 parent f0a7d47 commit 76b1919
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jquery.kiss-slider.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
JQuery KissSlider plugin
v1.3
v1.4
https://github.com/VivienLN/jquery.kiss-slider
*/
(function ($) {
Expand Down Expand Up @@ -70,7 +70,7 @@
});

// pagination
if(s.paginationSelector) {
if(s.paginationSelector && that.$slides.length > 1) {
for(var i = 0; i < that.$slides.length; i++) {
$(s.paginationBefore + '<button>' + (i+1) + '</button>' + s.paginationAfter)
.appendTo(s.paginationSelector)
Expand Down
4 changes: 2 additions & 2 deletions jquery.kiss-slider.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 76b1919

Please sign in to comment.