Merge pull request #16998 from edx/mikix/LEARNER-3717

Keep related programs when unenrolling
This commit is contained in:
Michael Terry
2017-12-21 12:47:36 -05:00
committed by GitHub

View File

@@ -192,7 +192,9 @@
// Reset the card contents to the unenrolled state
this.$triggerOpenBtn.addClass('hidden');
this.$enterCourseBtn.addClass('hidden');
this.$courseCardMessages.remove();
// Remove all message except for related programs, which should always be shown
// (Even other messages might need to be shown again in future: LEARNER-3523.)
this.$courseCardMessages.filter(':not(.message-related-programs)').remove();
this.$policyMsg.remove();
this.$('.enroll-btn-initial').focus();
HtmlUtils.setHtml(