From 22cc8afb9846aac2b9c2c5db395c57b7f72031ae Mon Sep 17 00:00:00 2001 From: Sven Marnach Date: Thu, 27 Jul 2017 18:46:15 +0200 Subject: [PATCH] Respect BATCH_ENROLLMENT_NOTIFY_USERS_DEFAULT setting for subsequent batches. --- lms/static/js/instructor_dashboard/membership.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/static/js/instructor_dashboard/membership.js b/lms/static/js/instructor_dashboard/membership.js index 45870df249..5d40391bd1 100644 --- a/lms/static/js/instructor_dashboard/membership.js +++ b/lms/static/js/instructor_dashboard/membership.js @@ -598,6 +598,7 @@ such that the value can be defined later than this assignment (file load order). this.$reason_field = this.$container.find("textarea[name='reason-field']"); this.$checkbox_autoenroll = this.$container.find("input[name='auto-enroll']"); this.$checkbox_emailstudents = this.$container.find("input[name='email-students']"); + this.checkbox_emailstudents_initialstate = this.$checkbox_emailstudents.is(':checked'); this.$task_response = this.$container.find('.request-response'); this.$request_response_error = this.$container.find('.request-response-error'); this.$enrollment_button.click(function(event) { @@ -634,7 +635,7 @@ such that the value can be defined later than this assignment (file load order). batchEnrollment.prototype.clear_input = function() { this.$identifier_input.val(''); this.$reason_field.val(''); - this.$checkbox_emailstudents.attr('checked', true); + this.$checkbox_emailstudents.attr('checked', this.checkbox_emailstudents_initialstate); return this.$checkbox_autoenroll.attr('checked', true); };