Bug fix: Reset "Notify users by email" check box to initial state.

Description

This is a bug fix for #15392.

This PR introduced a setting to determine the initial state of the "Notify users by email" checkbox on the bulk enrollment page. The setting works fine when the page is first loaded. However, after submitting a batch the JS code resets the state of the check boxes, and does not reflect the new setting when doing so.

*JIRA tickets*: TBD

*Discussions*: None

*Dependencies*: None

*Screenshots*:

![image](https://user-images.githubusercontent.com/249196/27481330-50cdfe58-581c-11e7-822b-672efd329a1c.png)

*Sandbox URL*: TBD - sandbox is being provisioned.

*Merge deadline*: None

*Testing instructions*:

On the devstack, add the `BATCH_ENROLLMENT_NOTIFY_USERS_DEFAULT` feature flag to the `FEATURES` dictionary in `lms.env.json`:

...
"FEATURES": {
"BATCH_ENROLLMENT_NOTIFY_USERS_DEFAULT": false,
...

Log in as the staff user, navigate to the "Membership" tab in the instructor dashboard on some course and notice that the status of the "Notify users by email" check box matches the setting. Then click the "Enroll" button and notice that the state of the check box is reverted to its original state.

*Author notes and concerns*:

1. I don't understand why the JS code needs to reset the state of the check boxes after a batch has been sent. In most cases, users won't want to submit a second batch, and if they do, I can't see why it should be more likely that they want to use the original state of the check boxes rather than the state they used for the previous batch. However, since someone wrote code to reset the state I assume there is some reason to do so and modified the code accordingly.

1. My first attempt was to pass the `BATCH_ENROLLMENT_NOTIFY_USERS_DEFAULT` setting from the Python code via the HTML template to the JS code. However, this became cumbersome quickly, so I chose to deduce the value of that setting from the initial state of the check box.

*Reviewers*

  • [ ] @bdero

  • [ ] edX reviewer[s] TBD

*Settings*
```yaml
EDXAPP_FEATURES:
BATCH_ENROLLMENT_NOTIFY_USERS_DEFAULT: false
```

Done

Assignee

Unassigned

Reporter

Open Source Pull Request Bot

Contributor Name

Sven Marnach

Repo

edx/edx-platform

Customer

Epic Link

None

OSCM Assignee

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Blended Hour Utilization Percentage

None

edX Theme

None

edX Squad

None

Github Lines Added

None

Github Lines Deleted

None

Priority

Unset