Permalink
Browse files

skip style counter now starts from 1 instead of 0

  • Loading branch information...
1 parent fc31125 commit 4ed5027949a341b27f1ad4ad71ff55a8fd2cffa6 @mjackson committed Feb 22, 2010
Showing with 3 additions and 2 deletions.
  1. +2 −1 examples/script-gallery.html
  2. +1 −1 source/skin.js
@@ -12,7 +12,8 @@
function openGallery() {
// the gallery will be continuous
var options = {
- continuous: true
+ continuous: true,
+ counterType: "skip"
};
// The objects created here need to be similar to those returned by
View
@@ -278,7 +278,7 @@ function buildBars(callback) {
counter += '<a onclick="Shadowbox.change(' + i + ');"'
if (i == S.current)
counter += ' class="sb-counter-current"';
- counter += ">" + (i++) + "</a>";
+ counter += ">" + (++i) + "</a>";
}
} else {
counter = [S.current + 1, S.lang.of, len].join(' ');

0 comments on commit 4ed5027

Please sign in to comment.