mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Preload tablesorter styles by module 'jquery.tablesorter.styles'
This change avoids the flash of missing sorting buttons while loading, but only with I0b446d18f47428d8c0c4aed78b75de16fe106218 in MediaWiki core included in MediaWiki 1.33 or higher. Depends-On: I0b446d18f47428d8c0c4aed78b75de16fe106218 Change-Id: I2c3eeb3a83822798ae0c46fcfea071df706798d7
This commit is contained in:
parent
b56cba7d18
commit
962a84ed82
|
@ -15,7 +15,7 @@
|
|||
"license-name": "GPL-2.0-or-later",
|
||||
"type": "parserhook",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.32.0"
|
||||
"MediaWiki": ">= 1.33.0"
|
||||
},
|
||||
"APIModules": {
|
||||
"templatedata": "ApiTemplateData"
|
||||
|
|
|
@ -152,7 +152,9 @@ class TemplateDataHooks {
|
|||
$parser->getOutput()->addModuleStyles( [
|
||||
'ext.templateData',
|
||||
'ext.templateData.images',
|
||||
'jquery.tablesorter.styles',
|
||||
] );
|
||||
$parser->getOutput()->addModules( 'jquery.tablesorter' );
|
||||
$parser->enableOOUI();
|
||||
|
||||
return $ti->getHtml( $parser->getOptions()->getUserLangObj() );
|
||||
|
|
Loading…
Reference in a new issue