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
f8966a18
Commit
f8966a18
authored
Dec 15, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address review comments
parent
2c75c72b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
10 deletions
+5
-10
drag_and_drop_v2/public/css/drag_and_drop.css
+0
-2
drag_and_drop_v2/public/js/drag_and_drop.js
+3
-0
drag_and_drop_v2/public/js/view.js
+1
-3
tests/test_advanced.py
+0
-4
tests/test_basics.py
+1
-1
No files found.
drag_and_drop_v2/public/css/drag_and_drop.css
View file @
f8966a18
...
...
@@ -108,11 +108,9 @@
}
.xblock--drag-and-drop
.drag-container
.option
.numerical-input
.submit-input
{
box-sizing
:
border-box
;
position
:
absolute
;
left
:
150px
;
top
:
4px
;
height
:
24px
;
}
.xblock--drag-and-drop
.drag-container
.option
.numerical-input.correct
.input-submit
,
...
...
drag_and_drop_v2/public/js/drag_and_drop.js
View file @
f8966a18
function
DragAndDropBlock
(
runtime
,
element
,
configuration
)
{
"use strict"
;
// Set up a mock for gettext if it isn't available in the client runtime:
if
(
!
window
.
gettext
)
{
window
.
gettext
=
function
gettext_stub
(
string
)
{
return
string
;
};
}
var
$element
=
$
(
element
);
// root: root node managed by the virtual DOM
var
$root
=
$element
.
find
(
'.xblock--drag-and-drop'
);
...
...
drag_and_drop_v2/public/js/view.js
View file @
f8966a18
...
...
@@ -2,9 +2,7 @@
"use strict"
;
// Set up a mock for gettext if it isn't available in the client runtime:
if
(
!
window
.
gettext
)
{
window
.
gettext
=
function
gettext_stub
(
string
)
{
return
string
;
};
}
if
(
!
window
.
gettext
)
{
window
.
gettext
=
function
gettext_stub
(
string
)
{
return
string
;
};
}
var
FocusHook
=
function
()
{
if
(
!
(
this
instanceof
FocusHook
))
{
...
...
tests/test_advanced.py
View file @
f8966a18
import
json
import
unittest
from
mock
import
Mock
from
nose.tools
import
assert_true
,
assert_false
,
assert_in
from
.utils
import
(
make_block
,
load_resource
,
...
...
tests/test_basics.py
View file @
f8966a18
...
...
@@ -16,7 +16,7 @@ class BasicTests(TestCaseMixin, unittest.TestCase):
self
.
block
=
make_block
()
self
.
patch_workbench
()
def
test_template
s
_contents
(
self
):
def
test_template_contents
(
self
):
context
=
{}
student_fragment
=
self
.
block
.
runtime
.
render
(
self
.
block
,
'student_view'
,
context
)
self
.
assertIn
(
'<section class="xblock--drag-and-drop">'
,
student_fragment
.
content
)
...
...
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