Skip to content
Merged
2 changes: 1 addition & 1 deletion build/media_source/com_finder/js/finder.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
document.querySelectorAll('.js-finder-search-query').forEach((searchword) => {
// Handle the auto suggestion
if (Joomla.getOptions('finder-search')) {
searchword.awesomplete = new Awesomplete(searchword);
searchword.awesomplete = new Awesomplete(searchword, { listLabel: Joomla.Text._('COM_FINDER_SEARCH_FORM_LIST_LABEL') });

// If the current value is empty, set the previous value.
searchword.addEventListener('input', onInputChange);
Expand Down
1 change: 1 addition & 0 deletions components/com_finder/tmpl/search/default_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
$this->getDocument()->getWebAssetManager()->usePreset('awesomplete');
$this->getDocument()->addScriptOptions('finder-search', ['url' => Route::_('index.php?option=com_finder&task=suggestions.suggest&format=json&tmpl=component', false)]);

Text::script('COM_FINDER_SEARCH_FORM_LIST_LABEL');
Text::script('JLIB_JS_AJAX_ERROR_OTHER');
Text::script('JLIB_JS_AJAX_ERROR_PARSE');
}
Expand Down
1 change: 1 addition & 0 deletions language/en-GB/com_finder.ini
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ COM_FINDER_QUERY_TOKEN_OPTIONAL="<span class=\"term\">%s</span> is optional"
COM_FINDER_QUERY_TOKEN_REQUIRED="<span class=\"term\">%s</span> is required"
COM_FINDER_SEARCH_ADVANCED_LEGEND="Advanced Search"
COM_FINDER_SEARCH_FORM_LEGEND="Search Form"
COM_FINDER_SEARCH_FORM_LIST_LABEL="Search Results"
COM_FINDER_SEARCH_NO_RESULTS_BODY="No search results could be found for query: %s."
COM_FINDER_SEARCH_NO_RESULTS_BODY_MULTILANG="No search results in English (en-GB) could be found for query: %s."
COM_FINDER_SEARCH_NO_RESULTS_HEADING="No Results Found"
Expand Down
1 change: 1 addition & 0 deletions modules/mod_finder/tmpl/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
$wa->usePreset('awesomplete');
$app->getDocument()->addScriptOptions('finder-search', ['url' => Route::_('index.php?option=com_finder&task=suggestions.suggest&format=json&tmpl=component', false)]);

Text::script('COM_FINDER_SEARCH_FORM_LIST_LABEL');
Text::script('JLIB_JS_AJAX_ERROR_OTHER');
Text::script('JLIB_JS_AJAX_ERROR_PARSE');
}
Expand Down