Add 'lang' and 'dir' attributes to '.mwe-popups-extract'

This change uses I26d033e33bfa60c8ff72ba70bb564cba4303a8b6 from core.

Bug: T68114
Change-Id: Iede17b777d5bb2863ea08ba5b0549b4cd7ef5a56
This commit is contained in:
Fomafix 2015-11-04 16:53:47 +00:00 committed by [[mw:User:Fomafix]]
parent 1bb736770a
commit 0a386fa141

View file

@ -50,7 +50,7 @@
mw.popups.render.currentRequest = mw.popups.api.get( {
action: 'query',
prop: 'extracts|pageimages|revisions',
prop: 'info|extracts|pageimages|revisions',
formatversion: 2,
redirects: true,
exintro: true,
@ -106,7 +106,11 @@
article.createPopup = function ( page, href ) {
var $div,
$contentbox = $( '<a>' )
.attr( 'href', href )
.attr( {
href: href,
lang: page.pagelanguagehtmlcode,
dir: page.pagelanguagedir
} )
.addClass( 'mwe-popups-extract' )
.append(
article.getProcessedElements( page.extract, page.title )