Merge pull request #63 from StarCitizenTools/dev

Fixed no result indicatorfor search suggestion
This commit is contained in:
alistair3149 2020-01-06 22:14:41 -05:00 committed by GitHub
commit f1281dd9cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,16 +245,15 @@ window.WMTypeAhead = function ( appendTo, searchInput ) {
const titlemsg = mw.message( 'citizen-search-no-results-title', searchString ).text(),
descmsg = mw.message( 'citizen-search-no-results-desc', searchString ).text();
return `
< div class = "suggestions-dropdown" >
< div class = "suggestion-link" >
< div class = "suggestion-text" >
< h3 class = "suggestion-title" > ` + titlemsg + ` < / h3 >
< p class = "suggestion-description" > ` + descmsg + ` < / p >
< / div >
< div class = "suggestion-thumbnail" > < / div >
< / div >
< / div > `;
return '<div class="suggestions-dropdown" >' +
'<div class="suggestion-link">' +
'<div class="suggestion-text">' +
'<h3 class="suggestion-title">' + titlemsg + '</h3>' +
'<p class="suggestion-description">' + descmsg + '</p>' +
'</div>' +
'<div class="suggestion-thumbnail"></div>' +
'</div>' +
'</div>';
}
/**