Skip to content

Commit

Permalink
Add student email to 'All results' page's CSV, Copy, and Excel downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
murhum1 committed Jan 17, 2025
1 parent b6afbe6 commit a238f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercise/static/exercise/results_staff.js
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@

let columns = [
{data: "UserID", title: "UserID", class: "always-hidden col-0", type: "num", searchable: false},
{data: "Email", title: "Email", class: "always-hidden col-1", type: "string", searchable: true},
{data: "Email", name: "Email", title: "Email", class: "always-hidden col-1", type: "string", searchable: true},
{data: "StudentID", title: _("Student ID"), type: "string", class: "student-id stick-on-scroll col-2", render: renderParticipantLink},
{data: "Name", title: _("Student name"), class: "student-name stick-on-scroll col-3", type: "html", render: renderParticipantLink},
{data: "Tags", title: _("Tags"), class: "tags col-4", render: function(data) { return userTagsToHTML(data); }, type: "html" },
Expand Down Expand Up @@ -1341,7 +1341,7 @@
*/
var buttonCommon = {
exportOptions: {
columns: ':visible',
columns: ['Email:name', ':visible'],
format: {
body: removeHtmlFromColumns
}
Expand Down

0 comments on commit a238f97

Please sign in to comment.