mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +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
+2
-2
@@ -28,7 +28,7 @@
|
||||
"license": "AGPL-3.0-only",
|
||||
"devDependencies": {
|
||||
"@types/cross-spawn": "^6.0.2",
|
||||
"@types/node": "^15.14.7",
|
||||
"@types/node": "^16.4.12",
|
||||
"@types/semver": "^7.3.8",
|
||||
"@typescript-eslint/eslint-plugin": "^4.29.0",
|
||||
"@typescript-eslint/parser": "^4.29.0",
|
||||
@@ -41,7 +41,7 @@
|
||||
"eslint-plugin-import": "^2.23.4",
|
||||
"fs-extra": "^10.0.0",
|
||||
"globby": "^11.0.4",
|
||||
"latest-version": "^5.1.0",
|
||||
"latest-version": "^6.0.0",
|
||||
"mongodb": "^3.6.11",
|
||||
"nmls": "^3.0.1",
|
||||
"ora": "^5.4.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.14.13",
|
||||
"version": "4.14.14",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
@@ -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