Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion assets/js/participants.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,10 @@ function participants_list(participants, api_url, is_teacher, enrollment_statuse
columns: columns,
order: [[ is_teacher ? 1 : 0, 'asc' ]],
orderCellsTop: true,
stateSave: true,
stateSaveCallback: function(settings, data) {
localStorage.setItem('participantsListPageLength', data.length);
},
rowId: function(row) { return 'participant-' + row.user_id; },
headerCallback: function(thead /*, data, start, end, display */) {
// Ensure thead has id and filters row exists even if DT rebuilt the header
Expand Down Expand Up @@ -554,7 +558,7 @@ function participants_list(participants, api_url, is_teacher, enrollment_statuse
$(row).attr('data-user-id', data.user_id);
},
lengthMenu: [[10, 50, 100, 500, -1], [10, 50, 100, 500, 'All']],
pageLength: 50,
pageLength: localStorage.getItem('participantsListPageLength') ? parseInt(localStorage.getItem('participantsListPageLength'), 10) : 50,
deferRender: true,
autoWidth: false,
language: { url: pageLanguageUrl },
Expand Down
2 changes: 1 addition & 1 deletion course/templates/course/staff/participants.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
{% endif %}
</p>

<div id="participants-table-container" class="table-responsive">
<div id="participants-table-container" class="table-responsive" style="overflow-x: visible;">
<table id="table-participants" class="table table-sm">
<thead id="table-heading"></thead>
<tbody id="participants">
Expand Down
Loading