From 2007800ce40c3329a3e4640e7c884d239a58c9ed Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Wed, 16 Sep 2015 19:28:18 +0100 Subject: [PATCH] MW*LinkAnnotation: Fix class names Link annotations now use $anchor instead of $element for the main tag. Change-Id: I038ecf97133a71fe86bb0d269a64bbe0ba46bdc2 --- .../ve-mw/ce/annotations/ve.ce.MWExternalLinkAnnotation.js | 2 +- .../ve-mw/ce/annotations/ve.ce.MWInternalLinkAnnotation.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ve-mw/ce/annotations/ve.ce.MWExternalLinkAnnotation.js b/modules/ve-mw/ce/annotations/ve.ce.MWExternalLinkAnnotation.js index efb1075859..56f171cb02 100644 --- a/modules/ve-mw/ce/annotations/ve.ce.MWExternalLinkAnnotation.js +++ b/modules/ve-mw/ce/annotations/ve.ce.MWExternalLinkAnnotation.js @@ -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 */ diff --git a/modules/ve-mw/ce/annotations/ve.ce.MWInternalLinkAnnotation.js b/modules/ve-mw/ce/annotations/ve.ce.MWInternalLinkAnnotation.js index c8f0450f68..801e06e30d 100644 --- a/modules/ve-mw/ce/annotations/ve.ce.MWInternalLinkAnnotation.js +++ b/modules/ve-mw/ce/annotations/ve.ce.MWInternalLinkAnnotation.js @@ -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 */