nopaque/app/static/js/list.utils.js
2019-08-23 15:05:01 +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");
}
}