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:
Ed Sanders 2015-09-16 19:28:18 +01:00
parent 71dd91d5d1
commit 2007800ce4
2 changed files with 3 additions and 3 deletions

View file

@ -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 */

View file

@ -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 */