progress style hotfix

This commit is contained in:
Egor Matveev 2022-05-11 15:16:09 +03:00
parent 7dd3b4f167
commit c233bf9b53

View File

@ -47,10 +47,16 @@
elem.className = "page-item active"; elem.className = "page-item active";
} }
if (page === 1) { if (page === 1) {
document.getElementById("page_prev").style = "display: none;"; const element = document.getElementById("page_prev");
if (element) {
element.style = "display: none;";
}
} }
if (page === pagesCount) { if (page === pagesCount) {
document.getElementById("page_next").style = "display: none;"; const element = document.getElementById("page_next");
if (element) {
element.style = "display: none;";
}
} }
} }
jQuery.get('/task_runtime?task_id={{ task.id }}', function(data1) { jQuery.get('/task_runtime?task_id={{ task.id }}', function(data1) {