Port get-anonymized-id feature to new instructor dashboard

This commit is contained in:
Nick Parlante
2013-09-24 12:59:19 -07:00
parent 1b5903935e
commit d225b85d1a
9 changed files with 143 additions and 1 deletions

View File

@@ -16,10 +16,16 @@ class DataDownload
@$display_table = @$display.find '.data-display-table'
@$request_response_error = @$display.find '.request-response-error'
@$list_studs_btn = @$section.find("input[name='list-profiles']'")
@$list_anon_btn = @$section.find("input[name='list-anon-ids']'")
@$grade_config_btn = @$section.find("input[name='dump-gradeconf']'")
# attach click handlers
# The list-anon case is always CSV
@$list_anon_btn.click (e) =>
url = @$list_anon_btn.data 'endpoint'
location.href = url
# this handler binds to both the download
# and the csv button
@$list_studs_btn.click (e) =>