* Seeking help from a person?
** https://www.mediawiki.org/wiki/Special:MyLanguage/Communication
* Looking to file a bug report or a feature request?
-** https://bugs.mediawiki.org/
+** https://phabricator.mediawiki.org/
* Interested in helping out?
** https://www.mediawiki.org/wiki/Special:MyLanguage/How_to_contribute
* - Other softblocks are chosen over autoblocks
* - If there are multiple exact or range blocks at the same level, the one chosen
* is random
- * This should be used when $blocks where retrieved from the user's IP address
+ * This should be used when $blocks were retrieved from the user's IP address
* and $ipChain is populated from the same IP address information.
*
* @param array $blocks Array of Block objects
'md_skin' => $vary,
'md_deps' => $deps,
],
- [ 'md_module', 'md_skin' ],
+ [ [ 'md_module', 'md_skin' ] ],
[
'md_deps' => $deps,
- ]
+ ],
+ __METHOD__
);
if ( $dbw->trxLevel() ) {
$this->outputHeader();
$out = $this->getOutput();
$out->setPageTitle( $this->msg( 'ipblocklist' ) );
- $out->addModuleStyles( [ 'mediawiki.special', 'mediawiki.special.blocklist' ] );
+ $out->addModuleStyles( [ 'mediawiki.special' ] );
$request = $this->getRequest();
$par = $request->getVal( 'ip', $par );
'resources/src/mediawiki.special/userrights.css',
'resources/src/mediawiki.special/watchlist.css',
'resources/src/mediawiki.special/block.less',
+ 'resources/src/mediawiki.special/blocklist.less',
],
'targets' => [ 'desktop', 'mobile' ],
],
],
'targets' => [ 'desktop', 'mobile' ],
],
- 'mediawiki.special.blocklist' => [
- 'styles' => 'resources/src/mediawiki.special/blocklist.less',
- 'targets' => [ 'desktop', 'mobile' ],
- ],
'mediawiki.special.changecredentials.js' => [
'scripts' => 'resources/src/mediawiki.special.changecredentials.js',
'dependencies' => [
}
$.suggestions.hide( context );
$.suggestions.cancel( context );
- } );
+ } )
+ // Simulate a keypress on load. This loads the search suggestions when there are already
+ // typed characters before the JavaScript is loaded.
+ .trigger( 'keypress' );
}
// Store the context for next time