mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-12 09:27:36 +00:00
Merge "Don't launch in articles with no text"
This commit is contained in:
commit
7ba96d7e87
|
@ -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