Don't launch in articles with no text

This is a silly bug.

Change-Id: I5d54cda34d5b7f383c182e41da13dfce141e36bb
This commit is contained in:
Mark Holmquist 2014-03-11 11:53:12 -07:00
parent e2966b4079
commit 2abb867b76

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;
}