mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-12 09:18:59 +00:00
Merge "Add 'lang' and 'dir' attributes to '.mwe-popups-extract'"
This commit is contained in:
commit
8df9d2fae1
|
@ -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