ui: sublang select

This commit is contained in:
undefined committed 2021-08-06 16:00:22 +08:00
1 parent efbc302d73
commit 5e8b5d76ad
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -28,7 +28,7 @@
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"devDependencies": { "devDependencies": {
"@types/cross-spawn": "^6.0.2", "@types/cross-spawn": "^6.0.2",
"@types/node": "^15.14.7", "@types/node": "^16.4.12",
"@types/semver": "^7.3.8", "@types/semver": "^7.3.8",
"@typescript-eslint/eslint-plugin": "^4.29.0", "@typescript-eslint/eslint-plugin": "^4.29.0",
"@typescript-eslint/parser": "^4.29.0", "@typescript-eslint/parser": "^4.29.0",
@@ -41,7 +41,7 @@
"eslint-plugin-import": "^2.23.4", "eslint-plugin-import": "^2.23.4",
"fs-extra": "^10.0.0", "fs-extra": "^10.0.0",
"globby": "^11.0.4", "globby": "^11.0.4",
"latest-version": "^5.1.0", "latest-version": "^6.0.0",
"mongodb": "^3.6.11", "mongodb": "^3.6.11",
"nmls": "^3.0.1", "nmls": "^3.0.1",
"ora": "^5.4.1", "ora": "^5.4.1",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.14.13", "version": "4.14.14",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "hydro.js", "main": "hydro.js",
@@ -41,7 +41,7 @@ const page = new NamedPage(['problem_submit', 'contest_detail_problem_submit', '
$('#codelang-main-select').val(m); $('#codelang-main-select').val(m);
const fallback = onChangeMain.call({ value: m }, false); const fallback = onChangeMain.call({ value: m }, false);
$('#codelang-sub-select').val(current); $('#codelang-sub-select').val(current);
if (!$('#codelang-sub-select').val()) { if (fallback && !$('#codelang-sub-select').val()) {
$('#codelang-sub-select').val(fallback); $('#codelang-sub-select').val(fallback);
$('[name="lang"]').val(fallback); $('[name="lang"]').val(fallback);
} }