mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix problem_submit.page
This commit is contained in:
1 parent
437bfc5e6e
commit
41110dde90
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.8.37",
|
"version": "4.8.38",
|
||||||
"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,10 +21,10 @@ const page = new NamedPage(['problem_submit', 'contest_detail_problem_submit'],
|
|||||||
if (Object.keys(options).length > 1) {
|
if (Object.keys(options).length > 1) {
|
||||||
setOptions($('#codelang-sub-select'), options);
|
setOptions($('#codelang-sub-select'), options);
|
||||||
$('#codelang-sub-container').show();
|
$('#codelang-sub-container').show();
|
||||||
$('[name="codeLang"]').val($('#codelang-sub-select').val());
|
$('[name="lang"]').val($('#codelang-sub-select').val());
|
||||||
} else {
|
} else {
|
||||||
$('#codelang-sub-container').hide();
|
$('#codelang-sub-container').hide();
|
||||||
$('[name="codeLang"]').val(this.value);
|
$('[name="lang"]').val(this.value);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$('#codelang-sub-select').on('change', function () {
|
$('#codelang-sub-select').on('change', function () {
|
||||||
|
|||||||
Reference in new issue
Block a user