mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-25 14:57:31 +00:00
15 lines
332 B
JavaScript
15 lines
332 B
JavaScript
|
/**
|
||
|
* @return {void}
|
||
|
*/
|
||
|
function initSearchLoader() {
|
||
|
const searchForm = document.getElementById( 'searchform' ),
|
||
|
searchInput = document.getElementById( 'searchInput' );
|
||
|
|
||
|
if ( searchForm && searchInput ) {
|
||
|
const typeahead = require( './typeahead.js' );
|
||
|
typeahead.init( searchForm, searchInput );
|
||
|
}
|
||
|
}
|
||
|
|
||
|
initSearchLoader();
|