mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 14:23:53 +00:00
Merge "Fix: page issue icon type determination"
This commit is contained in:
commit
e0db127746
|
@ -119,13 +119,13 @@
|
|||
// store it for late
|
||||
allIssues[section] = issues;
|
||||
|
||||
if ( inline ) {
|
||||
if ( $metadata.length && inline ) {
|
||||
severity = pageIssueParser.maxSeverity(
|
||||
issues.map( function ( issue ) { return issue.pageIssue; } )
|
||||
);
|
||||
new Icon( {
|
||||
glyphPrefix: 'minerva',
|
||||
name: pageIssueParser.iconName( $metadata, severity )
|
||||
name: pageIssueParser.iconName( $metadata.get( 0 ), severity )
|
||||
} ).prependTo( $metadata.find( '.mbox-text' ) );
|
||||
$learnMore = $( '<span>' )
|
||||
.addClass( 'ambox-learn-more' )
|
||||
|
|
Loading…
Reference in a new issue