ECOM-3760 fix editors not showing up on subsection config popup for self-paced course

This commit is contained in:
Mushtaq Ali
2016-02-19 18:53:40 +05:00
parent a26d576458
commit 2da452b839
2 changed files with 3 additions and 1 deletions

View File

@@ -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() {

View File

@@ -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({