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

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.37.8",
"version": "4.37.9",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
@@ -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();
});