From 773395448dbea3b0b964d8c7ce456f80c4ecb398 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Mon, 6 Jan 2020 22:12:31 -0500 Subject: [PATCH 1/2] Clean up syntax of noresultindicator --- resources/scripts/wm-typeahead.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/resources/scripts/wm-typeahead.js b/resources/scripts/wm-typeahead.js index d5e26705..ed4b372b 100644 --- a/resources/scripts/wm-typeahead.js +++ b/resources/scripts/wm-typeahead.js @@ -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 '
' + + '' + + '
'; } /** @@ -588,4 +587,4 @@ window.WMTypeAhead = function ( appendTo, searchInput ) { typeAheadEl: typeAheadEl, query: loadQueryScript }; -}; +}; \ No newline at end of file From 2f600d28d97495c87085cb85635060be37bcb382 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 7 Jan 2020 03:13:10 +0000 Subject: [PATCH 2/2] Github CI lint - eslint/stylelint --- resources/scripts/wm-typeahead.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/wm-typeahead.js b/resources/scripts/wm-typeahead.js index ed4b372b..73250c05 100644 --- a/resources/scripts/wm-typeahead.js +++ b/resources/scripts/wm-typeahead.js @@ -587,4 +587,4 @@ window.WMTypeAhead = function ( appendTo, searchInput ) { typeAheadEl: typeAheadEl, query: loadQueryScript }; -}; \ No newline at end of file +};