mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-12 09:27:36 +00:00
Do not add icons to media viewer image list
e.g. {{refimprove}} on enwiki - there is an icon of a book that is only meant to be illustrative on the page. It interferes with the page's image collection and the flow. Change-Id: Icd7e5885aaf8b31fffe07bd18cc0feb0f76b848c Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/229
This commit is contained in:
parent
3f73ea1076
commit
21549d7547
|
@ -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