Fix problem admin error and give pdf problem more time to render
This commit is contained in:
parent
6dbe3932de
commit
acdf94a8c9
2 changed files with 18 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue