mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: sublang select
This commit is contained in:
1 parent
efbc302d73
commit
5e8b5d76ad
3 files changed
+4
-4
No files matched your search
@@ -41,7 +41,7 @@ const page = new NamedPage(['problem_submit', 'contest_detail_problem_submit', '
|
||||
$('#codelang-main-select').val(m);
|
||||
const fallback = onChangeMain.call({ value: m }, false);
|
||||
$('#codelang-sub-select').val(current);
|
||||
if (!$('#codelang-sub-select').val()) {
|
||||
if (fallback && !$('#codelang-sub-select').val()) {
|
||||
$('#codelang-sub-select').val(fallback);
|
||||
$('[name="lang"]').val(fallback);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user