mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-25 23:05:47 +00:00
Move getconfig out of api request
This commit is contained in:
parent
4ac41fc37e
commit
ec99af3143
|
@ -92,7 +92,8 @@ window.WMTypeAhead = function ( appendTo, searchInput ) {
|
|||
searchString,
|
||||
typeAheadItems,
|
||||
activeItem,
|
||||
ssActiveIndex;
|
||||
ssActiveIndex,
|
||||
extractsChars = mw.config.get( 'wgCitizenSearchExchars' );
|
||||
|
||||
// Only create typeAheadEl once on page.
|
||||
if ( !typeAheadEl ) {
|
||||
|
@ -268,9 +269,9 @@ window.WMTypeAhead = function ( appendTo, searchInput ) {
|
|||
format: 'json',
|
||||
generator: 'prefixsearch',
|
||||
prop: 'pageprops|pageimages|description|extracts',
|
||||
exlimit: mw.config.get( 'wgCitizenMaxSearchResults' ),
|
||||
exlimit: maxSearchResults,
|
||||
exintro: 1,
|
||||
exchars: mw.config.get( 'wgCitizenSearchExchars' ),
|
||||
exchars: extractsChars,
|
||||
explaintext: 1,
|
||||
redirects: '',
|
||||
ppprop: 'displaytitle',
|
||||
|
|
Loading…
Reference in a new issue