Skip to content

Commit

Permalink
Updated useSlideNumber
Browse files Browse the repository at this point in the history
added conditionals, to ensure false doesn’t break anything.
  • Loading branch information
Nathan committed Mar 16, 2015
1 parent 408676b commit 46bb1c9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions assets/jquery.alton.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,18 @@
top = false;
}
});
slideIndex(current, false);
} else {
if (last !== $('.' + singleSlideClass + ':last-child')[0]) {
slideNumbersFade(false);
} else {
slideNumbersFade(true);
if (settings.useSlideNumbers) {
slideIndex(current, false);
}
} else {
if (settings.useSlideNumbers) {
if (last !== $('.' + singleSlideClass + ':last-child')[0]) {
slideNumbersFade(false);
} else {
slideNumbersFade(true);
slideIndex(current, false);
}
}
$(document).scrollTo(current);
}
}
Expand Down
2 changes: 1 addition & 1 deletion assets/jquery.alton.min.js

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

0 comments on commit 46bb1c9

Please sign in to comment.