Autocomplete on key press in some dropdown menus

This commit is contained in:
yflory
2017-03-06 12:18:12 +01:00
parent c04819538b
commit cb88227e2b
7 changed files with 112 additions and 16 deletions

View File

@@ -109,12 +109,7 @@ define(req, function(Default, Language) {
var $button = $(selector).find('button .buttonTitle');
// Select the current language in the list
var option = $(selector).find('[data-value="' + language + '"]');
if ($(option).length) {
$button.text($(option).text());
}
else {
$button.text('English');
}
selector.setValue(language || 'English');
// Listen for language change
$(selector).find('a.languageValue').on('click', function () {