ui: fix objective submit

This commit is contained in:
undefined committed 2025-10-17 20:40:29 +08:00
1 parent 7893ea38d7
commit 85cfd1441e
1 file changed
+1 -1
@@ -297,7 +297,7 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
if (cnt) {
await loadAns();
$('.problem-content .typo').append(!document.getElementsByClassName('nav__item--round').length
$('.problem-content .typo').append(document.getElementsByClassName('nav__item--round').length
? `<input type="submit" disabled class="button rounded primary disabled" value="${i18n('Login to Submit')}" />`
: `<input type="submit" class="button rounded primary" value="${i18n('Submit')}" />`);
$('.objective-input[type!=checkbox]').on('input', (e: JQuery.TriggeredEvent<HTMLInputElement>) => {