mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
MW*LinkAnnotation: Fix class names
Link annotations now use $anchor instead of $element for the main <a> tag. Change-Id: I038ecf97133a71fe86bb0d269a64bbe0ba46bdc2
This commit is contained in:
parent
71dd91d5d1
commit
2007800ce4
|
@ -20,7 +20,7 @@ ve.ce.MWExternalLinkAnnotation = function VeCeMWExternalLinkAnnotation() {
|
|||
ve.ce.MWExternalLinkAnnotation.super.apply( this, arguments );
|
||||
|
||||
// DOM changes
|
||||
this.$element.addClass( 'external' );
|
||||
this.$anchor.addClass( 'external' );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
|
@ -21,10 +21,10 @@ ve.ce.MWInternalLinkAnnotation = function VeCeMWInternalLinkAnnotation() {
|
|||
ve.ce.MWInternalLinkAnnotation.super.apply( this, arguments );
|
||||
|
||||
// DOM changes
|
||||
this.$element.addClass( 've-ce-mwInternalLinkAnnotation' );
|
||||
this.$anchor.addClass( 've-ce-mwInternalLinkAnnotation' );
|
||||
|
||||
// Style based on link cache information
|
||||
ve.init.platform.linkCache.styleElement( this.model.getAttribute( 'lookupTitle' ), annotation.$element );
|
||||
ve.init.platform.linkCache.styleElement( this.model.getAttribute( 'lookupTitle' ), annotation.$anchor );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
Loading…
Reference in a new issue