mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-25 00:38:33 +00:00
Merge "Highlighter: Fix check for comment warnings"
This commit is contained in:
commit
6c8d14e88a
|
@ -83,7 +83,7 @@ function markComment( comment ) {
|
|||
marker.style.left = ( rect.left + scrollLeft ) + 'px';
|
||||
marker.style.width = ( rect.width ) + 'px';
|
||||
|
||||
if ( comment.warnings ) {
|
||||
if ( comment.warnings && comment.warnings.length ) {
|
||||
markerWarnings = marker.cloneNode( false );
|
||||
markerWarnings.className = 'detected-comment-warnings';
|
||||
markerWarnings.innerText = comment.warnings.join( '\n' );
|
||||
|
|
Loading…
Reference in a new issue