mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 16:23:49 +00:00
Merge "Show caption on thumbnails"
This commit is contained in:
commit
cb95413903
|
@ -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() || '' );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue