mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-13 18:06:57 +00:00
Merge "Do not add icons to media viewer image list"
This commit is contained in:
commit
c350658093
|
@ -121,6 +121,12 @@
|
|||
return;
|
||||
}
|
||||
|
||||
if ( $thumb.closest( '.metadata' ).length > 0 ) {
|
||||
// This is almost certainly an icon for an informational template like
|
||||
// {{refimprove}} on enwiki.
|
||||
return;
|
||||
}
|
||||
|
||||
if ( $thumbContain.length !== 0 && $thumbContain.is( '.thumb' ) ) {
|
||||
$thumbCaption = $thumbContain.find( '.thumbcaption' ).clone();
|
||||
$thumbCaption.find( '.magnify' ).remove();
|
||||
|
|
Loading…
Reference in a new issue