mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-10-15 11:11:58 +00:00
Add javascript code for polling with update subscibers.
This commit is contained in:
9
app/static/js/utils.js
Normal file
9
app/static/js/utils.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// 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");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user