mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix codeLang-sub-select
This commit is contained in:
1 parent
41f6149359
commit
5fad63a3e1
4 files changed
+9
-7
No files matched your search
@@ -114,11 +114,10 @@ const page = new NamedPage('home_preference', async () => {
|
||||
}
|
||||
setOptions($('#codelang-main-select'), main);
|
||||
const current = $('[name="codeLang"]').val();
|
||||
console.log(current);
|
||||
if (current.includes('.')) {
|
||||
const [m, s] = current.split('.');
|
||||
$('#codelang-main-select').val(m);
|
||||
$('#codelang-sub-select').val(s);
|
||||
$('#codelang-sub-select').val(s).show();
|
||||
} else $('#codelang-main-select').val(current);
|
||||
|
||||
if (success) {
|
||||
|
||||
Reference in new issue
Block a user