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:
Moriel Schottlender 2013-05-06 17:45:22 -04:00 committed by Krinkle
parent 182dbc43de
commit 5e7188194d

View file

@ -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;
}