mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
Merge "Copy class across to new language link item"
This commit is contained in:
commit
5eed693afb
|
@ -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' );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue