mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-26 07:15:37 +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,
|
searchString,
|
||||||
typeAheadItems,
|
typeAheadItems,
|
||||||
activeItem,
|
activeItem,
|
||||||
ssActiveIndex;
|
ssActiveIndex,
|
||||||
|
extractsChars = mw.config.get( 'wgCitizenSearchExchars' );
|
||||||
|
|
||||||
// Only create typeAheadEl once on page.
|
// Only create typeAheadEl once on page.
|
||||||
if ( !typeAheadEl ) {
|
if ( !typeAheadEl ) {
|
||||||
|
@ -268,9 +269,9 @@ window.WMTypeAhead = function ( appendTo, searchInput ) {
|
||||||
format: 'json',
|
format: 'json',
|
||||||
generator: 'prefixsearch',
|
generator: 'prefixsearch',
|
||||||
prop: 'pageprops|pageimages|description|extracts',
|
prop: 'pageprops|pageimages|description|extracts',
|
||||||
exlimit: mw.config.get( 'wgCitizenMaxSearchResults' ),
|
exlimit: maxSearchResults,
|
||||||
exintro: 1,
|
exintro: 1,
|
||||||
exchars: mw.config.get( 'wgCitizenSearchExchars' ),
|
exchars: extractsChars,
|
||||||
explaintext: 1,
|
explaintext: 1,
|
||||||
redirects: '',
|
redirects: '',
|
||||||
ppprop: 'displaytitle',
|
ppprop: 'displaytitle',
|
||||||
|
|
Loading…
Reference in a new issue