mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 09:15:41 +00:00
10 lines
260 B
JavaScript
10 lines
260 B
JavaScript
// List.js utils
|
|
var updatePagination = function(list) {
|
|
pagination = list.listContainer.querySelector(".pagination");
|
|
if (pagination.childElementCount <= 1) {
|
|
pagination.classList.add("hide");
|
|
} else {
|
|
pagination.classList.remove("hide");
|
|
}
|
|
}
|