mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-11-24 07:13:27 +00:00
Merge "Clear the statusbar if no annotations are left"
This commit is contained in:
commit
d1c3f04a7a
|
@ -417,7 +417,8 @@
|
|||
closestAnnotation !== $message.data( 'annotation') ) {
|
||||
$message.data( 'annotation', closestAnnotation );
|
||||
$message.text( $.ucFirst( closestAnnotation.type ) + ': ' + closestAnnotation.text );
|
||||
} else if ( $message.data( 'annotation' ) !== null && ( closestAnnotation && currentLine !== closestAnnotation.row ) ) {
|
||||
} else if ( $message.data( 'annotation' ) !== null &&
|
||||
( !closestAnnotation || currentLine !== closestAnnotation.row ) ) {
|
||||
// If we are on a different line without an annotation, then blank the message
|
||||
$message.data( 'annotation', null );
|
||||
$message.text( '' );
|
||||
|
|
Loading…
Reference in a new issue