nopaque/app/static/js/utils.js
2019-08-20 11:24:52 +02:00

9 lines
244 B
JavaScript

List.updatePagination = function(list) {
pagination = list.listContainer.querySelector(".pagination");
if (pagination.childElementCount <= 1) {
pagination.classList.add("hide");
} else {
pagination.classList.remove("hide");
}
}