Merge "Don't launch in articles with no text"

This commit is contained in:
jenkins-bot 2014-03-19 13:57:43 +00:00 committed by Gerrit Code Review
commit 7ba96d7e87

View file

@ -121,9 +121,14 @@
return;
}
if ( $thumb.closest( '.metadata' ).length > 0 ) {
if (
// This is almost certainly an icon for an informational template like
// {{refimprove}} on enwiki.
$thumb.closest( '.metadata' ).length > 0 ||
// This is an article with no text.
$thumb.closest( '.noarticletext' ).length > 0
) {
return;
}