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
3a612a4d
Commit
3a612a4d
authored
Oct 16, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed reordering of subsection and units; they now save on update without error
parent
00f3db37
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
cms/static/js/base.js
+1
-1
cms/static/sass/_courseware.scss
+3
-3
cms/static/sass/_subsection.scss
+1
-1
cms/templates/edit_subsection.html
+1
-1
cms/templates/overview.html
+1
-1
No files found.
cms/static/js/base.js
View file @
3a612a4d
...
...
@@ -62,7 +62,7 @@ $(document).ready(function() {
});
// Subsection reordering
$
(
'.
unit-list
ol'
).
sortable
({
$
(
'.
subsection-list >
ol'
).
sortable
({
axis
:
'y'
,
handle
:
'.section-item .drag-handle'
,
update
:
onSubsectionReordered
...
...
cms/static/sass/_courseware.scss
View file @
3a612a4d
...
...
@@ -38,8 +38,8 @@ input.courseware-unit-search-input {
}
}
&
.collapsed
.
unit
-list
,
.collapsed
.
unit
-list
,
&
.collapsed
.
subsection
-list
,
.collapsed
.
subsection
-list
,
.collapsed
>
ol
{
display
:
none
!
important
;
}
...
...
@@ -94,7 +94,7 @@ input.courseware-unit-search-input {
border-radius
:
3px
3px
0
0
;
}
.
unit
-list
{
.
subsection
-list
{
margin
:
0
12px
;
>
ol
{
...
...
cms/static/sass/_subsection.scss
View file @
3a612a4d
...
...
@@ -15,7 +15,7 @@
width
:
100%
;
}
.unit-list
{
.
sortable-
unit-list
{
ol
{
@include
tree-view
;
}
...
...
cms/templates/edit_subsection.html
View file @
3a612a4d
...
...
@@ -27,7 +27,7 @@
<label>
Format:
</label>
<input
type=
"text"
value=
"${subsection.metadata['format'] if 'format' in subsection.metadata else ''}"
class=
"unit-subtitle"
data-metadata-name=
"format"
/>
</div>
<div
class=
"unit-list"
>
<div
class=
"
sortable-
unit-list"
>
<label>
Units:
</label>
${units.enum_units(subsection, subsection_units=subsection_units)}
</div>
...
...
cms/templates/overview.html
View file @
3a612a4d
...
...
@@ -98,7 +98,7 @@
<a
href=
"#"
class=
"drag-handle"
></a>
</div>
</header>
<div
class=
"
unit
-list"
>
<div
class=
"
subsection
-list"
>
<div
class=
"list-header"
>
<a
href=
"#"
class=
"new-subsection-item"
data-template=
"${new_subsection_template}"
>
<span
class=
"new-folder-icon"
></span>
New Subsection
...
...
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