mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-11-09 08:40:07 +00:00
Toggle paginations if one or less items are displayed.
This commit is contained in:
1 parent
ea399d2cdc
commit
47c3edeb7f
2 files changed
+21
-16
No files matched your search
@@ -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