Skip to content

Commit

Permalink
When the stepy has only one step the next button is not applied.
Browse files Browse the repository at this point in the history
  • Loading branch information
wbotelhos committed May 25, 2011
1 parent e9ad1c2 commit b33d7bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/jquery.stepy.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@
$titles.append('<li id="' + id + '-title-' + index + '">' + title + '<span>' + description + '</span></li>');

if (index == 0) {
createNextButton(index);
if (size > 1) {
createNextButton(index);
}
} else {
createBackButton(index);
step.hide();
Expand Down

0 comments on commit b33d7bf

Please sign in to comment.