diff --git a/cms/djangoapps/contentstore/tests/test_course_settings.py b/cms/djangoapps/contentstore/tests/test_course_settings.py index 286477228b..efeeca8465 100644 --- a/cms/djangoapps/contentstore/tests/test_course_settings.py +++ b/cms/djangoapps/contentstore/tests/test_course_settings.py @@ -128,7 +128,10 @@ class CourseDetailsTestCase(CourseTestCase): self.assertContains(response, "Enrollment End Date") self.assertContains(response, "not the dates shown on your course summary page") - self.assertNotContains(response, "Introducing Your Course") + self.assertContains(response, "Introducing Your Course") + self.assertContains(response, "Course Image") + self.assertNotContains(response,"Course Overview") + self.assertNotContains(response,"Course Introduction Video") self.assertNotContains(response, "Requirements") def test_regular_site_fetch(self): diff --git a/cms/static/js/views/settings/main_settings_view.js b/cms/static/js/views/settings/main_settings_view.js index 89abff0371..409c8b1c84 100644 --- a/cms/static/js/views/settings/main_settings_view.js +++ b/cms/static/js/views/settings/main_settings_view.js @@ -184,8 +184,11 @@ CMS.Views.Settings.Details = CMS.Views.ValidatingView.extend({ if (forcedTarget) { thisTarget = forcedTarget; thisTarget.id = $(thisTarget).attr('id'); - } else { + } else if (e !== null) { thisTarget = e.currentTarget; + } else + { + return; } if (!this.codeMirrors[thisTarget.id]) { diff --git a/cms/templates/settings.html b/cms/templates/settings.html index 84e9155e6d..d4d68e6e48 100644 --- a/cms/templates/settings.html +++ b/cms/templates/settings.html @@ -194,14 +194,13 @@ from contentstore import utils % endif