ui: hide normal submit when objective

This commit is contained in:
panda committed 2022-06-28 19:03:02 +08:00
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();
});