Improve language selection usability

This commit is contained in:
LordGrey
2020-05-29 11:28:35 +02:00
parent 85e2bc9fb8
commit 6c7b1813a7
8 changed files with 65 additions and 41 deletions

View File

@@ -178,6 +178,17 @@ function updateHyperionInstanceListing()
}
}
function initLanguageSelection()
{
for (var i = 0; i < availLang.length; i++)
{
$("#language-select").append('<option value="'+i+'" selected="">'+availLangText[i]+'</option>');
}
$("#language-select").val(availLang.indexOf(storedLang));
$("#language-select").selectpicker("refresh");
}
function updateUiOnInstance(inst)
{
if(inst != 0)