CRM-21231: On CiviMail screen make 'Review and Schedule' tab active if required fields are filled #11035
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
The Review and Schedule tab selector becomes active after the user first visits the Review and Schedule screen by clicking the Next button on the Define Mailing screen. It would be preferable for the tab to behave like the next button - become active when all the required fields are completed.
Before
The second tab is disabled even if all required fields are filled. Screencast:
![civimail-before](https://user-images.githubusercontent.com/3735621/30965077-a40acca8-a471-11e7-8416-5a63590c6cc3.gif)
After
The second tab is enabled after all required fields are filled.
![civimail-after](https://user-images.githubusercontent.com/3735621/30965017-625ec868-a471-11e7-9016-55c3aa4b51d2.gif)
NOTE: Clear cache before testing.