Merge "Show caption on thumbnails"

This commit is contained in:
jenkins-bot 2014-04-23 01:37:19 +00:00 committed by Gerrit Code Review
commit cb95413903

View file

@ -164,6 +164,9 @@
if ( $thumbContain.length !== 0 && $thumbContain.is( '.thumb' ) ) {
$thumbCaption = $thumbContain.find( '.thumbcaption' ).clone();
$thumbCaption.find( '.magnify' ).remove();
if ( !$thumbCaption.length ) { // gallery, maybe
$thumbCaption = $thumbContain.closest( '.gallerybox' ).find( '.gallerytext' ).clone();
}
caption = this.htmlUtils.htmlToTextWithLinks( $thumbCaption.html() || '' );
}