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
0d8925d5
Commit
0d8925d5
authored
Aug 26, 2014
by
dragonfi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide reset button when exercise is not completed
parent
23564e28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
drag_and_drop_v2/public/css/drag_and_drop.css
+1
-0
drag_and_drop_v2/public/js/drag_and_drop.js
+2
-0
No files found.
drag_and_drop_v2/public/css/drag_and_drop.css
View file @
0d8925d5
...
@@ -185,4 +185,5 @@
...
@@ -185,4 +185,5 @@
float
:
right
;
float
:
right
;
color
:
#3384CA
;
color
:
#3384CA
;
margin-top
:
3px
;
margin-top
:
3px
;
display
:
none
;
}
}
drag_and_drop_v2/public/js/drag_and_drop.js
View file @
0d8925d5
...
@@ -78,6 +78,7 @@ function DragAndDropBlock(runtime, element) {
...
@@ -78,6 +78,7 @@ function DragAndDropBlock(runtime, element) {
finish
:
function
(
final_feedback
)
{
finish
:
function
(
final_feedback
)
{
// Disable any decoy items
// Disable any decoy items
_fn
.
$items
.
draggable
(
'disable'
);
_fn
.
$items
.
draggable
(
'disable'
);
_fn
.
$reset_button
.
show
();
// Show final feedback
// Show final feedback
if
(
final_feedback
)
_fn
.
feedback
.
set
(
final_feedback
);
if
(
final_feedback
)
_fn
.
feedback
.
set
(
final_feedback
);
...
@@ -89,6 +90,7 @@ function DragAndDropBlock(runtime, element) {
...
@@ -89,6 +90,7 @@ function DragAndDropBlock(runtime, element) {
_fn
.
clickHandlers
.
drag
.
reset
(
$
(
element
));
_fn
.
clickHandlers
.
drag
.
reset
(
$
(
element
));
});
});
_fn
.
$popup
.
hide
();
_fn
.
$popup
.
hide
();
_fn
.
$reset_button
.
hide
();
_fn
.
feedback
.
set
(
_fn
.
data
.
feedback
.
start
);
_fn
.
feedback
.
set
(
_fn
.
data
.
feedback
.
start
);
},
},
...
...
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