Commit 78b69836 by Mushtaq Ali

Merge pull request #11597 from edx/mushtaq/ECOM-3760-fix-self-paced-subsection-config

Fix subsection config for self-paced course
parents e3ddb02c 2da452b8
......@@ -787,6 +787,8 @@ define(["jquery", "common/js/spec_helpers/ajax_helpers", "common/js/components/u
outlinePage.$('.outline-subsection .configure-button').click();
expect($(".edit-settings-release").length).toBe(0);
expect($(".grading-due-date").length).toBe(0);
expect($(".edit-settings-grading").length).toBe(1);
expect($(".edit-staff-lock").length).toBe(1);
});
it('can select valid time', function() {
......
......@@ -770,7 +770,7 @@ define(['jquery', 'backbone', 'underscore', 'gettext', 'js/views/baseview',
if (course.get('self_paced')) {
editors = _.without(editors, ReleaseDateEditor, DueDateEditor);
_.each(tabs, function (tab) {
tab.editors = _.without(editors, ReleaseDateEditor, DueDateEditor);
tab.editors = _.without(tab.editors, ReleaseDateEditor, DueDateEditor);
});
}
return new SettingsXBlockModal($.extend({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment