jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/366286 )
Change subject: LinkCache: parsoid element styling, detect selflink fragments
......................................................................
LinkCache: parsoid element styling, detect selflink fragments
Selflinks with fragments aren't actually selflinks, and so shouldn't be styled
as such.
Bug: T170943
Change-Id: Icb67c81327769d09af6bcfe593843d9dd2bcc33c
---
M modules/ve-mw/init/ve.init.mw.LinkCache.js
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Bartosz Dziewoński: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/ve-mw/init/ve.init.mw.LinkCache.js
b/modules/ve-mw/init/ve.init.mw.LinkCache.js
index cfdca0c..f4ec4df 100644
--- a/modules/ve-mw/init/ve.init.mw.LinkCache.js
+++ b/modules/ve-mw/init/ve.init.mw.LinkCache.js
@@ -128,7 +128,7 @@
title =
ve.init.platform.linkCache.constructor.static.normalizeTitle(
ve.dm.MWInternalLinkAnnotation.static.getTargetDataFromHref( href, doc ).title
);
- ve.init.platform.linkCache.styleElement( title,
$( this ) );
+ ve.init.platform.linkCache.styleElement( title,
$( this ), href.indexOf( '#' ) !== -1 );
} );
}
};
--
To view, visit https://gerrit.wikimedia.org/r/366286
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Icb67c81327769d09af6bcfe593843d9dd2bcc33c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: DLynch <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Esanders <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits