mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
ext.rtlcite: Add to top queue and load with addModuleStyles
As per RoanKattouw's suggestions, changed the loading position to top and changed CSS loading to static (addModuleStyles). Bug: 48185 Change-Id: I319285d23a4f0a0522cc793f1a6661cda31a1ebf
This commit is contained in:
parent
182dbc43de
commit
5e7188194d
4
Cite.php
4
Cite.php
|
@ -88,7 +88,7 @@ $wgResourceModules['jquery.tooltip'] = $citeResourceTemplate + array(
|
|||
/* Add RTL fix for the cite <sup> elements */
|
||||
$wgResourceModules['ext.rtlcite'] = $citeResourceTemplate + array(
|
||||
'styles' => 'ext.rtlcite/ext.rtlcite.css',
|
||||
'position' => 'bottom',
|
||||
'position' => 'top',
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -104,7 +104,7 @@ function wfCiteBeforePageDisplay( $out, &$sk ) {
|
|||
}
|
||||
|
||||
/* RTL support quick-fix module */
|
||||
$out->addModules( 'ext.rtlcite' );
|
||||
$out->addModuleStyles( 'ext.rtlcite' );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue