Commit 78708e41 by George Song Committed by GitHub

Merge pull request #15683 from open-craft/smarnach/notify-default

Bug fix: Reset "Notify users by email" check box to initial state.
parents c871804d 22cc8afb
......@@ -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);
};
......
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