Merge "Fix: page issue icon type determination"

This commit is contained in:
jenkins-bot 2018-08-09 00:22:55 +00:00 committed by Gerrit Code Review
commit e0db127746

View file

@ -119,13 +119,13 @@
// store it for late // store it for late
allIssues[section] = issues; allIssues[section] = issues;
if ( inline ) { if ( $metadata.length && inline ) {
severity = pageIssueParser.maxSeverity( severity = pageIssueParser.maxSeverity(
issues.map( function ( issue ) { return issue.pageIssue; } ) issues.map( function ( issue ) { return issue.pageIssue; } )
); );
new Icon( { new Icon( {
glyphPrefix: 'minerva', glyphPrefix: 'minerva',
name: pageIssueParser.iconName( $metadata, severity ) name: pageIssueParser.iconName( $metadata.get( 0 ), severity )
} ).prependTo( $metadata.find( '.mbox-text' ) ); } ).prependTo( $metadata.find( '.mbox-text' ) );
$learnMore = $( '<span>' ) $learnMore = $( '<span>' )
.addClass( 'ambox-learn-more' ) .addClass( 'ambox-learn-more' )