mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 09:00:40 +00:00
Toggle paginations if one or less items are displayed.
This commit is contained in:
@ -39,16 +39,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
corpusListOptions = {
|
||||
valueNames: ['title'],
|
||||
page: 4,
|
||||
pagination: true
|
||||
};
|
||||
corpusList = new List("corpus-list", corpusListOptions);
|
||||
/*
|
||||
* TODO: Hide Pagination if there is only on page
|
||||
* corpusListPagination = document.querySelector("#corpus-list .pagination");
|
||||
*/
|
||||
corpusList = new List("corpus-list", {valueNames: ["title"],
|
||||
page: 4,
|
||||
pagination: true});
|
||||
corpusList.on("filterComplete", updatePagination);
|
||||
corpusList.on("searchComplete", updatePagination);
|
||||
</script>
|
||||
|
||||
<div class="col s12">
|
||||
@ -113,12 +108,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
jobListOptions = {
|
||||
valueNames: ['title'],
|
||||
page: 4,
|
||||
pagination: true
|
||||
};
|
||||
jobList = new List("job-list", jobListOptions);
|
||||
var jobList = new List("job-list", {valueNames: ["title"],
|
||||
page: 4,
|
||||
pagination: true});
|
||||
jobList.on("filterComplete", updatePagination);
|
||||
jobList.on("searchComplete", updatePagination);
|
||||
</script>
|
||||
|
||||
<div id="new-corpus-modal" class="modal">
|
||||
|
Reference in New Issue
Block a user