Skip to content

Commit

Permalink
load faster
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Aug 15, 2024
1 parent a7ab8fc commit e8a84d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions static/repositories.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
$(function(){
new DataTable('table', {
searching: false,
paging: false,
searching: true,
paging: true,
pageLength: 200,
lengthChange: false,
columns: [null, { type: 'num' }, { type: 'num' }, { type: 'num' }, {orderable: false}, {orderable: false}, null],
order: []
order: [],
language: { search: "Filter: "},
initComplete: function () {
$('div.dt-search').addClass("float-end")
$('div.dt-search input').removeClass('dt-input').addClass('m-2')
}
});
$("table").removeClass('d-none')
});
2 changes: 1 addition & 1 deletion views/repositories.pug
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ extends global

block content
#content-container.container(style='max-width: 1440px')
table.table.table-bordered
table.table.table-bordered.d-none
thead
tr
th universe
Expand Down

0 comments on commit e8a84d8

Please sign in to comment.