Skip to content

Commit

Permalink
Merge pull request jcobb#112 from weerdenburg/master
Browse files Browse the repository at this point in the history
If only one slide is available, disable automatic animation.
  • Loading branch information
jcobb committed Feb 15, 2013
2 parents e15b5ee + 4f24dcd commit 8ffe118
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/bjqs-1.3.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@
conf_slide();
}

} else {
// Stop automatic animation, because we only have one slide!
settings.automatic = false;
}

if(settings.usecaptions){
Expand Down Expand Up @@ -713,4 +716,4 @@

};

})(jQuery);
})(jQuery);

0 comments on commit 8ffe118

Please sign in to comment.