mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-15 10:38:19 +00:00
ci: 👷 lint code to MediaWiki standards
Check commit and GitHub actions for more details
This commit is contained in:
parent
283aa86888
commit
70a003d941
|
@ -146,7 +146,7 @@ const typeahead = {
|
|||
},
|
||||
updateSearchQuery: function () {
|
||||
if ( searchQuery.value === typeahead.input.element.value ) {
|
||||
return Promise.reject( `Search query has not changed: ${searchQuery.value}.`);
|
||||
return Promise.reject( `Search query has not changed: ${searchQuery.value}.` );
|
||||
}
|
||||
searchQuery.setValue( typeahead.input.element.value );
|
||||
return Promise.resolve( `Search query updated to ${searchQuery.value}.` );
|
||||
|
@ -156,9 +156,9 @@ const typeahead = {
|
|||
await typeahead.updateSearchClient();
|
||||
updateTypeaheadItems();
|
||||
} )
|
||||
.catch( ( reject ) => {
|
||||
.catch( ( reject ) => {
|
||||
// Don't do anything if search query has not changed.
|
||||
} );
|
||||
} );
|
||||
},
|
||||
init: function ( formEl, inputEl ) {
|
||||
const template = mw.template.get( 'skins.citizen.search', 'resources/skins.citizen.search/templates/typeahead.mustache' );
|
||||
|
|
Loading…
Reference in a new issue