Skip to content

Commit

Permalink
skip style counter now starts from 1 instead of 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Feb 22, 2010
1 parent fc31125 commit 4ed5027
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/script-gallery.html
Expand Up @@ -12,7 +12,8 @@
function openGallery() { function openGallery() {
// the gallery will be continuous // the gallery will be continuous
var options = { var options = {
continuous: true continuous: true,
counterType: "skip"
}; };


// The objects created here need to be similar to those returned by // The objects created here need to be similar to those returned by
Expand Down
2 changes: 1 addition & 1 deletion source/skin.js
Expand Up @@ -278,7 +278,7 @@ function buildBars(callback) {
counter += '<a onclick="Shadowbox.change(' + i + ');"' counter += '<a onclick="Shadowbox.change(' + i + ');"'
if (i == S.current) if (i == S.current)
counter += ' class="sb-counter-current"'; counter += ' class="sb-counter-current"';
counter += ">" + (i++) + "</a>"; counter += ">" + (++i) + "</a>";
} }
} else { } else {
counter = [S.current + 1, S.lang.of, len].join(' '); counter = [S.current + 1, S.lang.of, len].join(' ');
Expand Down

0 comments on commit 4ed5027

Please sign in to comment.