ui: fix problem-sidebar__download

This commit is contained in:
undefined committed 2022-05-21 00:22:47 +08:00
1 parent c556c542a5
commit 1410727f6a
2 files changed
+2 -2

No files matched your search

@@ -272,7 +272,7 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
$(ev.currentTarget).hide();
$('span.tags').css('display', 'inline-block');
});
$('[name="problem-sidebar__download').on('click', handleClickDownloadProblem);
$('[name="problem-sidebar__download"]').on('click', handleClickDownloadProblem);
if (UiContext.pdoc.config?.type === 'objective') loadObjective();
if (pagename !== 'contest_detail_problem') initChart();
});