Skip to content
Browse files

Fix title of lightbox?

  • Loading branch information...
1 parent 1af8cde commit b8a2c00fbb56da33d7930b99276d91bc147ea5dd @vanderhoorn vanderhoorn committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/assets/javascripts/imports/lightbox.js.erb
View
2 app/assets/javascripts/imports/lightbox.js.erb
@@ -236,7 +236,7 @@ Lightbox.prototype = {
this.imageArray =
$$(imageLink.tagName + '[href][rel="' + imageLink.rel + '"]').
// !!! HACK -- include the image alt
- collect(function(anchor){ return [anchor.href, anchor.title, anchor.down('img').alt]; }).
+ collect(function(anchor){ return [anchor.href, anchor.down('img').title, anchor.down('img').alt]; }).
uniq();
while (this.imageArray[imageNum][0] != imageLink.href) { imageNum++; }

0 comments on commit b8a2c00

Please sign in to comment.
Something went wrong with that request. Please try again.