Merge "Do not add icons to media viewer image list"

This commit is contained in:
jenkins-bot 2014-03-10 19:02:27 +00:00 committed by Gerrit Code Review
commit c350658093

View file

@ -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();