mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix problem-sidebar__download
This commit is contained in:
1 parent
c556c542a5
commit
1410727f6a
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.37.8",
|
"version": "4.37.9",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
@@ -272,7 +272,7 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
|
|||||||
$(ev.currentTarget).hide();
|
$(ev.currentTarget).hide();
|
||||||
$('span.tags').css('display', 'inline-block');
|
$('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 (UiContext.pdoc.config?.type === 'objective') loadObjective();
|
||||||
if (pagename !== 'contest_detail_problem') initChart();
|
if (pagename !== 'contest_detail_problem') initChart();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user