Commit 3e610f47 by Sven Marnach Committed by George Song

Respect `BATCH_ENROLLMENT_NOTIFY_USERS_DEFAULT` setting for subsequent batches

Cherry picked from #15683 22cc8afb.
parent d17bc753
......@@ -548,6 +548,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) {
......@@ -584,7 +585,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);
};
......
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