Skip to content

Commit

Permalink
Style fixes and pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
KesterTan committed Jan 30, 2025
1 parent 61a546c commit 55dcf8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions app/assets/javascripts/manage_submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,13 @@ $(document).ready(function() {
var selectedSubmissions = [];

var table = $('#submissions').DataTable({
'dom': 'f<"selected-buttons"p>Brt', // show buttons, search, table
'dom': 'f<"selected-buttons">rtip', // show buttons, search, table
'paging': true,
'createdRow': completeRow,
'sPaginationType': 'full_numbers',
'iDisplayLength': 10,
"lengthMenu": [10, 25, 50, 75, 100],
'pageLength': 100,
'info': true,
'deferRender': true,
});

// Check if the table is empty
Expand Down
5 changes: 4 additions & 1 deletion app/assets/stylesheets/datatable.adapter.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ div.dataTables_filter {
float: left;
}

div.dataTables_paginate,
div.dataTables_filter {
padding: 6px 0px;
margin-right: 20px;
Expand Down Expand Up @@ -71,3 +70,7 @@ div.dataTables_paginate {
padding: 6px 0;
margin-right: 20px;
}

div.dataTables_info {
float: left;
}

0 comments on commit 55dcf8b

Please sign in to comment.