mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: problem_submit
This commit is contained in:
1 parent
641fdf8132
commit
63894f9959
2 files changed
+8
-4
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.14.14",
|
"version": "4.14.15",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
@@ -21,9 +21,13 @@ const page = new NamedPage(['problem_submit', 'contest_detail_problem_submit', '
|
|||||||
if (key.startsWith(`${this.value}.`) && key !== this.value) options[key] = window.LANGS[key].display;
|
if (key.startsWith(`${this.value}.`) && key !== this.value) options[key] = window.LANGS[key].display;
|
||||||
}
|
}
|
||||||
setOptions($('#codelang-sub-select'), options);
|
setOptions($('#codelang-sub-select'), options);
|
||||||
if (Object.keys(options).length) $('#codelang-sub-container').show();
|
if (Object.keys(options).length) {
|
||||||
else $('#codelang-sub-container').hide();
|
$('#codelang-sub-container').show();
|
||||||
if (update) $('[name="lang"]').val($('#codelang-sub-select').val());
|
if (update) $('[name="lang"]').val($('#codelang-sub-select').val());
|
||||||
|
} else {
|
||||||
|
$('#codelang-sub-container').hide();
|
||||||
|
if (update) $('[name="lang"]').val(this.value);
|
||||||
|
}
|
||||||
return Object.keys(options)[0];
|
return Object.keys(options)[0];
|
||||||
}
|
}
|
||||||
const main = {};
|
const main = {};
|
||||||
|
|||||||
Reference in new issue
Block a user