mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-28 01:50:09 +00:00
Don't launch in articles with no text
This is a silly bug. Change-Id: I5d54cda34d5b7f383c182e41da13dfce141e36bb
This commit is contained in:
parent
e2966b4079
commit
2abb867b76
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue