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
53179a65
Commit
53179a65
authored
Jun 30, 2014
by
Filippo Valsorda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the feedback popup
parent
8ce76f2e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
draggable_builder.html
+0
-1
js/draggable_builder.js
+5
-4
No files found.
draggable_builder.html
View file @
53179a65
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
<header
class=
"hidden"
>
<header
class=
"hidden"
>
<h1>
Title
<span
class=
"small"
>
(1 point possible)
</span></h1>
<h1>
Title
<span
class=
"small"
>
(1 point possible)
</span></h1>
<h2>
Question
</h2>
<p>
Lorem ipsum?
</p>
<p>
Lorem ipsum?
</p>
</header>
</header>
...
...
js/draggable_builder.js
View file @
53179a65
...
@@ -463,7 +463,7 @@ var dragAndDrop = (function() {
...
@@ -463,7 +463,7 @@ var dragAndDrop = (function() {
.
draggable
(
'disable'
);
.
draggable
(
'disable'
);
_fn
.
test
.
completed
++
;
_fn
.
test
.
completed
++
;
_fn
.
feedback
.
popup
(
_fn
.
feedback
.
get
(
val
,
true
)
);
_fn
.
feedback
.
popup
(
_fn
.
feedback
.
get
(
val
,
true
)
,
true
);
if
(
_fn
.
items
.
allSubmitted
()
)
{
if
(
_fn
.
items
.
allSubmitted
()
)
{
_fn
.
finish
();
_fn
.
finish
();
...
@@ -471,7 +471,7 @@ var dragAndDrop = (function() {
...
@@ -471,7 +471,7 @@ var dragAndDrop = (function() {
}
else
{
}
else
{
// Return to original position
// Return to original position
_fn
.
clickHandlers
.
drag
.
reset
(
$el
);
_fn
.
clickHandlers
.
drag
.
reset
(
$el
);
_fn
.
feedback
.
popup
(
_fn
.
feedback
.
get
(
val
,
false
)
);
_fn
.
feedback
.
popup
(
_fn
.
feedback
.
get
(
val
,
false
)
,
false
);
}
}
},
},
...
@@ -588,8 +588,9 @@ var dragAndDrop = (function() {
...
@@ -588,8 +588,9 @@ var dragAndDrop = (function() {
},
},
// Show a feedback popup
// Show a feedback popup
popup
:
function
(
str
)
{
popup
:
function
(
str
,
boo
)
{
return
$
(
"<div>"
).
attr
(
'title'
,
'Feedback'
).
text
(
str
).
dialog
();
if
(
str
===
undefined
||
str
===
''
)
return
;
return
$
(
"<div>"
).
attr
(
'title'
,
boo
?
'Correct'
:
'Error'
).
text
(
str
).
dialog
();
}
}
},
},
...
...
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