Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
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
OpenEdx
xblock-drag-and-drop-v2
Commits
f6237815
Commit
f6237815
authored
Jul 04, 2014
by
Filippo Valsorda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Segregate also the student_view javascript selection
parent
1fe66eff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drag_and_drop_v2/public/js/drag_and_drop.js
+6
-6
No files found.
drag_and_drop_v2/public/js/drag_and_drop.js
View file @
f6237815
...
@@ -3,11 +3,11 @@ function DragAndDropBlock(runtime, element) {
...
@@ -3,11 +3,11 @@ function DragAndDropBlock(runtime, element) {
var
_fn
=
{
var
_fn
=
{
// DOM Elements
// DOM Elements
$block
:
$
(
'.xblock--drag-and-drop'
),
$block
:
$
(
'.xblock--drag-and-drop'
,
element
),
$app
:
$
(
'.xblock--drag-and-drop .drag-container'
),
$app
:
$
(
'.xblock--drag-and-drop .drag-container'
,
element
),
$ul
:
$
(
'.xblock--drag-and-drop .items'
),
$ul
:
$
(
'.xblock--drag-and-drop .items'
,
element
),
$target
:
$
(
'.xblock--drag-and-drop .target-img'
),
$target
:
$
(
'.xblock--drag-and-drop .target-img'
,
element
),
$feedback
:
$
(
'.xblock--drag-and-drop .feedback .message'
),
$feedback
:
$
(
'.xblock--drag-and-drop .feedback .message'
,
element
),
// Cannot set until items added to DOM
// Cannot set until items added to DOM
$items
:
{},
// $('.xblock--drag-and-drop .items .option'),
$items
:
{},
// $('.xblock--drag-and-drop .items .option'),
...
@@ -208,7 +208,7 @@ function DragAndDropBlock(runtime, element) {
...
@@ -208,7 +208,7 @@ function DragAndDropBlock(runtime, element) {
_fn
.
$ul
.
html
(
list
.
join
(
''
));
_fn
.
$ul
.
html
(
list
.
join
(
''
));
// Set variable
// Set variable
_fn
.
$items
=
$
(
'.xblock--drag-and-drop .items .option'
);
_fn
.
$items
=
$
(
'.xblock--drag-and-drop .items .option'
,
element
);
}
}
},
},
...
...
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