mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-30 17:14:46 +00:00
Load 'ext.interwiki.specialpage' as style module
This avoids a FOUC on loading. For overwriting the wikitable styles a higher specificity is needed to not depend on the order of loading. The dependency to module 'jquery.makeCollapsible' is not necessary because this module is loaded automatically. Change-Id: Icc1ec927a89df5cf8c847ab5cb77d81f2651be49
This commit is contained in:
parent
60ebf7695e
commit
b4d359d250
|
@ -43,7 +43,9 @@ input#mw-interwiki-url {
|
||||||
.mw-interwiki-legend .mw-collapsible-toggle {
|
.mw-interwiki-legend .mw-collapsible-toggle {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
table.mw-interwiki-legend {
|
|
||||||
|
/* Selector with higher specifity than wikitable */
|
||||||
|
table.wikitable.mw-interwiki-legend {
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ class SpecialInterwiki extends SpecialPage {
|
||||||
$out = $this->getOutput();
|
$out = $this->getOutput();
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
|
|
||||||
$out->addModules( 'ext.interwiki.specialpage' );
|
$out->addModuleStyles( 'ext.interwiki.specialpage' );
|
||||||
|
|
||||||
$action = $par ?: $request->getVal( 'action', $par );
|
$action = $par ?: $request->getVal( 'action', $par );
|
||||||
$return = $this->getPageTitle();
|
$return = $this->getPageTitle();
|
||||||
|
|
|
@ -39,10 +39,7 @@
|
||||||
},
|
},
|
||||||
"ResourceModules": {
|
"ResourceModules": {
|
||||||
"ext.interwiki.specialpage": {
|
"ext.interwiki.specialpage": {
|
||||||
"styles": "Interwiki.css",
|
"styles": "Interwiki.css"
|
||||||
"dependencies": [
|
|
||||||
"jquery.makeCollapsible"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"ResourceFileModulePaths": {
|
"ResourceFileModulePaths": {
|
||||||
|
|
Loading…
Reference in a new issue