diff --git a/coffee/bootstrap.lightbox.coffee b/coffee/bootstrap.lightbox.coffee index a9dca545..d2d43f4d 100644 --- a/coffee/bootstrap.lightbox.coffee +++ b/coffee/bootstrap.lightbox.coffee @@ -312,7 +312,7 @@ class Lightbox .html( @options.labelImage + " " + (@currentImageIndex + 1) + " " + @options.labelOf + " " + @album.length) .fadeIn("fast") else - $lightbox.find(".lb-number").hide() + $lightbox.find(".lb-number, .close").hide() $lightbox.find(".lb-outerContainer").removeClass "animating" diff --git a/js/bootstrap.lightbox.js b/js/bootstrap.lightbox.js index 1a281359..a43c0a38 100644 --- a/js/bootstrap.lightbox.js +++ b/js/bootstrap.lightbox.js @@ -313,7 +313,7 @@ lightbox = new Lightbox options if (this.album.length > 1) { $lightbox.find(".lb-number").html(this.options.labelImage + " " + (this.currentImageIndex + 1) + " " + this.options.labelOf + " " + this.album.length).fadeIn("fast"); } else { - $lightbox.find(".lb-number").hide(); + $lightbox.find(".lb-number, .close").hide(); } $lightbox.find(".lb-outerContainer").removeClass("animating"); $lightbox.find(".lb-dataContainer").fadeIn(this.resizeDuration, function() {