Commit 82142a49 by Adam Palay

pass event to callback functions in membership.coffee (LMS-2547)

parent 79fea620
...@@ -186,7 +186,7 @@ class BetaTesterBulkAddition ...@@ -186,7 +186,7 @@ class BetaTesterBulkAddition
@$request_response_error = @$container.find(".request-response-error") @$request_response_error = @$container.find(".request-response-error")
# click handlers # click handlers
@$btn_beta_testers.click => @$btn_beta_testers.click (event) =>
emailStudents = @$checkbox_emailstudents.is(':checked') emailStudents = @$checkbox_emailstudents.is(':checked')
autoEnroll = @$checkbox_autoenroll.is(':checked') autoEnroll = @$checkbox_autoenroll.is(':checked')
send_data = send_data =
...@@ -277,7 +277,7 @@ class BatchEnrollment ...@@ -277,7 +277,7 @@ class BatchEnrollment
@$request_response_error = @$container.find(".request-response-error") @$request_response_error = @$container.find(".request-response-error")
# attach click handler for enrollment buttons # attach click handler for enrollment buttons
@$enrollment_button.click => @$enrollment_button.click (event) =>
emailStudents = @$checkbox_emailstudents.is(':checked') emailStudents = @$checkbox_emailstudents.is(':checked')
send_data = send_data =
action: $(event.target).data('action') # 'enroll' or 'unenroll' action: $(event.target).data('action') # 'enroll' or 'unenroll'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment