Bureaucrats, coding, Administrators
2,634
edits
mNo edit summary |
m (+) |
||
Line 514: | Line 514: | ||
if(gallery.length) { | if(gallery.length) { | ||
// In gallery | // In gallery | ||
$(this).attr('data-title', $(this).attr(' | $(this).attr('data-title', '<p>' + $(this).attr('title') + '</p>' + $(this).attr('data-title')); | ||
var gID = gallery.attr('id'); | var gID = gallery.attr('id'); | ||
if(galleryBuckets[gID] == null) { | if(galleryBuckets[gID] == null) { | ||
Line 522: | Line 522: | ||
} | } | ||
} else { | } else { | ||
// Not in gallery, | // Not in gallery (separate Lightbox) | ||
var thumb = $(this).closest('.thumbinner'); | |||
if(thumb.length) { | |||
var caption = thumb.children('.thumbcaption'); | |||
if(caption.length) { | |||
$(this).attr('data-title', '<p>' + caption.html() + '</p>' + $(this).attr('data-title')); | |||
} | |||
} | |||
$(this).lightBox(lightboxStuff.settings); | $(this).lightBox(lightboxStuff.settings); | ||
} | } |