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
b91c2b66
Commit
b91c2b66
authored
Sep 26, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sequence and vertical js modules that add drag and drop
parent
ce363853
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
0 deletions
+15
-0
common/lib/xmodule/xmodule/js/src/sequence/edit.coffee
+4
-0
common/lib/xmodule/xmodule/js/src/vertical/edit.coffee
+4
-0
common/lib/xmodule/xmodule/seq_module.py
+3
-0
common/lib/xmodule/xmodule/vertical_module.py
+4
-0
No files found.
common/lib/xmodule/xmodule/js/src/sequence/edit.coffee
0 → 100644
View file @
b91c2b66
class
@
SequenceDescriptor
constructor
:
(
@
element
)
->
@
$tabs
=
$
(
@
element
).
find
(
"#sequence-list"
)
@
$tabs
.
sortable
()
common/lib/xmodule/xmodule/js/src/vertical/edit.coffee
0 → 100644
View file @
b91c2b66
class
@
VerticalDescriptor
constructor
:
(
@
element
)
->
@
$items
=
$
(
@
element
).
find
(
".vert-mod"
)
@
$items
.
sortable
()
common/lib/xmodule/xmodule/seq_module.py
View file @
b91c2b66
...
...
@@ -119,6 +119,9 @@ class SequenceDescriptor(MakoModuleDescriptor, XmlDescriptor):
template_dir_name
=
'sequence'
js
=
{
'coffee'
:
[
resource_string
(
__name__
,
'js/src/sequence/edit.coffee'
)]}
js_module_name
=
"SequenceDescriptor"
@classmethod
def
definition_from_xml
(
cls
,
xml_object
,
system
):
children
=
[]
...
...
common/lib/xmodule/xmodule/vertical_module.py
View file @
b91c2b66
from
xmodule.x_module
import
XModule
from
xmodule.seq_module
import
SequenceDescriptor
from
xmodule.progress
import
Progress
from
pkg_resources
import
resource_string
# HACK: This shouldn't be hard-coded to two types
# OBSOLETE: This obsoletes 'type'
...
...
@@ -40,3 +41,6 @@ class VerticalModule(XModule):
class
VerticalDescriptor
(
SequenceDescriptor
):
module_class
=
VerticalModule
js
=
{
'coffee'
:
[
resource_string
(
__name__
,
'js/src/vertical/edit.coffee'
)]}
js_module_name
=
"VerticalDescriptor"
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