mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-28 01:10:04 +00:00
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:
parent
1bb736770a
commit
0a386fa141
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue