Fix problem admin error and give pdf problem more time to render

This commit is contained in:
cuom1999 2024-03-17 02:39:20 -05:00
parent 6dbe3932de
commit acdf94a8c9
2 changed files with 18 additions and 3 deletions

View file

@ -67,7 +67,9 @@
$('#raw_problem').attr('src', '{{problem.code}}/raw')
$('#raw_problem').on('load', function() {
renderKatex(frames['raw_problem'].document);
frames['raw_problem'].print();
setTimeout(() => {
frames['raw_problem'].print();
}, 500);
});
}
else {