mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
ui: hide normal submit when objective
This commit is contained in:
1 parent
6ec215df35
commit
5f9d83dce4
1 file changed
+3
-2
@@ -242,6 +242,8 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
|
||||
});
|
||||
});
|
||||
}
|
||||
$('.scratchpad--hide').hide();
|
||||
$('.non-scratchpad--hide').hide();
|
||||
$('.outer-loader-container').hide();
|
||||
}
|
||||
|
||||
@@ -317,8 +319,7 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
|
||||
$('span.tags').css('display', 'inline-block');
|
||||
});
|
||||
$('[name="problem-sidebar__download"]').on('click', handleClickDownloadProblem);
|
||||
const { type } = UiContext.pdoc.config || {};
|
||||
if (type === 'objective') loadObjective();
|
||||
if (UiContext.pdoc.config?.type === 'objective') loadObjective();
|
||||
if (pagename !== 'contest_detail_problem') initChart();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user