Skip to content

Commit 296ab9e

Browse files
Pierce Chaffinhedgiejo
authored andcommitted
Fixes Sample Page (All) Pagination
1 parent 5b217f0 commit 296ab9e

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

pegr/grails-app/controllers/pegr/SampleController.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class SampleController {
1515
def protocolInstanceBagService
1616

1717
def all(Integer max) {
18-
// params.max = Math.min(max ?: 15, 100)
18+
params.max = Math.min(max ?: 15, 100)
1919
if (!params.sort) {
2020
params.sort = "id"
2121
params.order = "desc"

pegr/grails-app/views/sample/all.gsp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@
1616
$(function(){
1717
$(".nav-datasets").addClass("active");
1818
});
19-
20-
$(document).ready(function(){
21-
$('#table_id').DataTable()({
22-
scrollY: '50vh',
23-
dom: 'Bfrtip',
24-
scrollCollapse: true,
25-
paging: true
26-
});
27-
});
2819
</script>
2920
</body>
3021
</html>

0 commit comments

Comments
 (0)