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
- % if about_page_editable:

${_("Introducing Your Course")}

${_("Information for prospective students")}
-
    + % if about_page_editable:
  1. @@ -213,6 +212,7 @@ from contentstore import utils %>${text} ${overview_text()}
  2. + % endif
  3. @@ -242,6 +242,7 @@ from contentstore import utils
  4. + % if about_page_editable:
  5. @@ -258,9 +259,11 @@ from contentstore import utils ${_("Enter your YouTube video's ID (along with any restriction parameters)")}
  6. + % endif
+ % if about_page_editable:
@@ -277,7 +280,7 @@ from contentstore import utils
- % endif + % endif