Merge "Copy class across to new language link item"

This commit is contained in:
jenkins-bot 2021-08-11 21:52:33 +00:00 committed by Gerrit Code Review
commit 5eed693afb
1 changed files with 5 additions and 1 deletions

View File

@ -10,7 +10,11 @@ function addInterwikiLinkToSidebar() {
if ( $editLink.length ) {
// Use title attribute for link text
$editLink.text( $editLink.attr( 'title' ) || '' );
var $li = $( '<li>' ).append( $editLink );
var $li = $( '<li>' )
// If the Wikibase code runs last, this class is required so it matches the selector @:
// https://gerrit.wikimedia.org/g/mediawiki/extensions/Wikibase/+/f2e96e1b08fc5ae2e2e92f05d5eda137dc6b1bc8/client/resources/wikibase.client.linkitem.init.js#82
.addClass( 'wb-langlinks-link' )
.append( $editLink );
$li.appendTo( '#p-tb ul' );
}
}