mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 09:36:08 +08:00
ui: fix problem_files page for remote_judge
This commit is contained in:
1 file changed
+1
-1
@@ -366,7 +366,7 @@ const page = new NamedPage('problem_files', () => {
|
||||
}
|
||||
}
|
||||
|
||||
if (UiContext.pdoc) {
|
||||
if (UiContext.pdoc && $('[name="generate_testdata"]').length) {
|
||||
FileSelectAutoComplete.getOrConstruct($('[name=gen]'), { data: UiContext.pdoc.data });
|
||||
FileSelectAutoComplete.getOrConstruct($('[name=std]'), { data: UiContext.pdoc.data });
|
||||
$('[name="generate_testdata"]').on('click', handleGenerateTestdata);
|
||||
|
||||
Reference in new issue
Block a user