Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
78b69836
Commit
78b69836
authored
Feb 25, 2016
by
Mushtaq Ali
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11597 from edx/mushtaq/ECOM-3760-fix-self-paced-subsection-config
Fix subsection config for self-paced course
parents
e3ddb02c
2da452b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
cms/static/js/spec/views/pages/course_outline_spec.js
+2
-0
cms/static/js/views/modals/course_outline_modals.js
+1
-1
No files found.
cms/static/js/spec/views/pages/course_outline_spec.js
View file @
78b69836
...
...
@@ -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
()
{
...
...
cms/static/js/views/modals/course_outline_modals.js
View file @
78b69836
...
...
@@ -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
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment