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

@@ -376,6 +376,10 @@
background-color: #f1f1f1;
color: black !important;
}
.dropdown-bar .dropdown-bar-content a.active {
background-color: #e8e8e8;
color: black !important;
}
.dropdown-bar .dropdown-bar-content hr {
margin: 5px 0px;
height: 1px;

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 () {

View File

@@ -57,6 +57,11 @@
background-color: #f1f1f1;
color: black !important;
}
&.active {
background-color: #e8e8e8;
color: black !important;
}
}
hr {

View File

@@ -42,6 +42,10 @@
background-color: #f1f1f1;
color: black !important;
}
.dropdown-bar .dropdown-bar-content a.active {
background-color: #e8e8e8;
color: black !important;
}
.dropdown-bar .dropdown-bar-content hr {
margin: 5px 0px;
height: 1px;